Unable to add test credit card for a subscription

chrisan
Tourist
6 1 0

I have enabled test mode

https://help.shopify.com/en/manual/payments/shopify-payments/testing-shopify-payments

and see the Bogus Gateway

 

For my app I'm now trying to create a subscription https://shopify.dev/docs/apps/billing/subscriptions using a time-based subscription https://shopify.dev/docs/apps/billing/subscriptions/time-based

 

However on the "Approve subscription" confirmation url when I go to add a TEST credit card I get

 

"There is 1 error

Your card couldn’t be verified because it was declined. Try adding another card."

 

Is there some other place I need to enable test mode on payments?

 

Replies 2 (2)

SealSubs
Explorer
69 1 4

Hi,

 

I suspect that you are trying to set up the app charge for the store. As you are trying to add a test credit card, Shopify of course doesn't accept it.
To try out the app charge in Shopify, simply mark the app charge as "test charge" through the API when you are creating it. This will allow you to accept it even in the development store.
These is a documentation about this here: https://shopify.dev/docs/api/admin-rest/2023-10/resources/recurringapplicationcharge

 

SealSubs_0-1713900915114.png

 

Seal Subscriptions App, a subscription app for Shopify, with glowing user testimonials.
chrisan
Tourist
6 1 0

Thanks for the tip on the test flag.  Is it expected that it still won't accept a test credit card with that?

 

I used a real card and got past adding a credit card but now it says "The shop cannot accept the provided charge."

 

Under my shop settings/payments I have the Bogus Gateway enabled