Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Hot answers tagged

4 votes
Accepted

Payment currency not allowed

Solution from Craft: In your Control Panel, click on Commerce then on the vertical subnav (where you have All Orders, New, Shipped....) you will have Active and Inactive carts, this is what Luke ...
user avatar
  • 408
3 votes
Accepted

Mark a Commerce Order as Paid, via a custom plugin

Your best bet would be to create a transaction for the full amount: $transaction = Plugin::getInstance()->transactions->createTransaction($order); $transaction->status = \craft\commerce\...
user avatar
  • 6,637
2 votes
Accepted

Craft Commerce payments not going through - status "redirect"

My money is on 3D Secure, a security protocol that requires card authentication before the card can be charged. https://stripe.com/docs/payments/3d-secure So those "Redirect" orders are ...
user avatar
  • 304
2 votes
Accepted

Checkout Without Payment

I set config variable to general config instead of commerce config. That's all..
user avatar
  • 78
2 votes

Send payment requests

This is possible with Craft Commerce 3 Pro. Create an email that would trigger on an 'Invoice' order status that you configure. (or any other name you want) You would make the order in the Control ...
user avatar
  • 6,637
2 votes

Craft Commerce payment gateway: general info requested

How far does Craft Commerce go when a user puts an order? When an order is paid in full it is marked as complete and gets a default order status that you can configure, after that a store admin ...
user avatar
  • 6,637
2 votes

Missing required param: card[exp_month] on Charge 2

Add the following hidden inputs below the <input type="text" data-stripe="exp" placeholder="mm / yy" id="cardExpiry"/> line: <input type="hidden" name="cardExpMonth" data-stripe="exp_month"&...
user avatar
  • 226
2 votes

Craft Commerce eWAY payment error

Which eWay are you implementing? We have used eWAY Rapid Direct with no issues for over a year now with Commerce. They key most people seem to miss is that you must implement the CSE - Client Side ...
user avatar
2 votes

Craft Commerce 2: PayPal Express not working - Correlation id: unknown

The Craft support helped me to figure this out. The problem was, that the CSRF wasn't properly disabled. So in my config/general.php I have the following: if ( !function_exists('isApiRequest') ) { ...
user avatar
  • 433
1 vote
Accepted

Commerce 2 — Guest checkout error: no customer email address exists on this cart

Switching to the new template structure fixed the issue I had regarding the email not being recognised/saved.
user avatar
  • 109
1 vote

getTransactionByHash() must be of the type string, null given

When you redirect to the gateway's site to accept payment, within the data they receive, they usually ask for the URL to return to after payment is made. This URL should point to the ...
user avatar
  • 6,637
1 vote

Mark a Commerce Order as Paid, via a custom plugin

If anyone is interested, here's Commerce 3 version. $number = 'xxx'; $order = \craft\commerce\elements\Order::find()->number($number)->one(); $transaction = \craft\commerce\Plugin::...
user avatar
  • 1,185
1 vote
Accepted

Commerce Stripe Card Declined shows white screen with no error

Couldn't get past the white page issue so I made a simple plugin which does the following: craft()->on('commerce_transactions.onSaveTransaction', function($event) { $transaction = $event->...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible