Headless payment using WooCommerce Order object
-
Hi there,
I’m attempting to complete a transaction using your plugin via the WooCommerce Order API endpoint and it’s not attempting to take payment when it’s creating the order – returning that the Credit Card is not accepted.
The error in the WooCommerce order log is “Error processing payment. Reason: Credit card type is not accepted by this merchant account.”
If I then pay for the order manually using the same card details from the Order Admin screen in WooCommerce, it completes successfully.
I have the payment token generated from Braintree for the credit card payment, but I’m not sure how to pass that into the order request. The Stripe implementation uses the metadata fields to pass in the token, so I’m assuming that something similar could be completed for creating an order using the Braintree plugin instead?
Are there specific meta data key/values, or other Order API fields (other than the payment method etc), that need to be set in order to complete the purchase?
Thanks,
Pete
The topic ‘Headless payment using WooCommerce Order object’ is closed to new replies.