Hot answers tagged

4

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 suggested you clear. Essentially, it looks like existing carts may exist which are still using the old currency. Therefore these must be cleared before changing ...


2

I set config variable to general config instead of commerce config. That's all..


2

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 Panel, then mark it as complete (which will set the the default status), then change the status to 'invoice' to trigger the email. In the email template, link ...


2

Your best bet would be to create a transaction for the full amount: $transaction = Plugin::getInstance()->transactions->createTransaction($order); $transaction->status = \craft\commerce\records\Transaction::STATUS_SUCCESS; $transaction->type = \craft\commerce\records\Transaction::TYPE_PURCHASE; Plugin::getInstance()->transactions->...


2

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 would move the order to another status. An order can also be completed if the payment gateway 'authorizes' the full amount of the order, allowing a store admin to '...


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"> <input type="hidden" name="cardExpYear" data-stripe="exp_year"> The example in the documentation seems to be missing that information but you can ...


2

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 Encryption part of the eWay process before the gateway submission to eWay will wok. This is documented by eWay here: https://eway.io/api-v3/#how-it-works In ...


2

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') ) { function isApiRequest () { $path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH); $query = parse_url($_SERVER['REQUEST_URI'], ...


1

Switching to the new template structure fixed the issue I had regarding the email not being recognised/saved.


1

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 PaymentsController::actionCompletePayment() controller action, but have the param ?commerceTransactionHash=YOUR_TRANSACTION_HASH appended to it. My guess is that the error you ...


1

If anyone is interested, here's Commerce 3 version. $number = 'xxx'; $order = \craft\commerce\elements\Order::find()->number($number)->one(); $transaction = \craft\commerce\Plugin::getInstance()->getTransactions()->createTransaction($order); $transaction->status = \craft\commerce\records\Transaction::STATUS_SUCCESS; $transaction->type = \...


1

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->params["transaction"]; if ($transaction->status == "failed") { $message = $transaction->response["error"]["message"]; craft()->...


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