Closed tflight closed 2 years ago
Hi @tflight,
The two capture methods you referenced are meant to be used in conjunction with the "authorize" option for the "Payment Action" setting for our plugin. Generally, when the payment action is set to "authorize", after a customer places an order an admin would later use one of the capture methods to capture (finalize) that earlier authorization. The capture methods will not function correctly in the way you mentioned.
Thank you for bringing this scenario to our attention though. We'll explore changing the plugin's handling so that it offers a useful error response in the future.
Thanks. So is there any way for an Admin to create an order on behalf of a customer and charge their saved card?
No, that is not possible. You're able to create an order and even email the order details to the user/customer so that they may pay for the order (using a saved card or a new payment method), but it isn't possible to perform that step on behalf of your customer.
If a customer has a saved payment method, it cannot be used to process payments from the Dashboard. Scenario: User has a saved payment method visible at
/my-account
. An Administrator can create a new order from the WordPress Dashboard --> WooCommerce --> Orders --> Add order. The order by default will have a 'Pending payment' Status. Under 'Order Actions' the plugin has added both 'Capture credit card authorization' and 'Capture MasterPass authorization', but neither work to process a payment for the order.WordPress 6.0.1 WooCommerce 6.8.0 WooCommerce SecureSubmit Gateway 2.0.2 Storefront theme by WooCommerce 4.1.2 (tested against other default WP themes and they have the same issue)
The 'Capture credit card authorization' option results in the following fatal error: