-
Notifications
You must be signed in to change notification settings - Fork 3
Card payment fails with WooCommerce Subscriptions #66
Comments
Does the card payment method require remote access to the server? That is obviously not available for a local machine. I also tested this on a virtual staging environment where there is no access to the server without a specific cookie set for all HTTP requests (Seravo) so I'm currently unable to test this on a remote server. |
Thanks for reporting, we will investigate this. The remote access is required only for callback calls, but those are obsolete if you return correctly from payment service to webshop after paying. |
I've pinpointed this error to be caused by the merchant not having enabled card payments for their Checkout subscription. Checkout API probably will not return the card payment method for this type of merchant, but the issue is in the way the plugin is handling subscription product payments. The current code base forces the payment method to be credit card if the Subscription plugin is active and the cart contains subscription products. This processing is incomplete and requires more steps:
The second step means that the end user should be allowed to select automatic renewals using a card payment or manual renewals if another payment method is selected. Currently, the plugin forces automatic renewals and only the card payment is available. |
Thanks for the input.
|
Describe the bug
The purchase process fails when adding a new card as a payment method when purchasing a WooCommerce Subscriptions product. The card form is shown as excepted, but returning to the shop's success handler produces the following error:
To Reproduce
Use the following versions:
Activate the payment gateway and use the test credentials. Create a subscriptions product on the admin side. Log out and do not use an existing user on the front-end. Add the subscriptions product to cart. Go to checkout and add the required customer information. Try to purchase the product by adding a new card payment method.
Expected behavior
A new card payment method is added for the current user and the subscription product is successfully purchased using this newly added method.
Additional context
The error was produced on a local machine using the test shop credentials and both Visa and Mastercard test credentials for the card payment. Debug log contains the following:
URL path for the error:
The text was updated successfully, but these errors were encountered: