#bmizerany

1 messages · Page 1 of 1 (latest)

blazing galeBOT
ruby bear
#

Hi, taking a look at the request id now.

whole dove
#

Thank you!

ruby bear
#

Can you share a request if where it worked?

whole dove
#

Sure one sec

#

I've never seen it work with subscription schedules if that is what you're asking. I can create a request that works for customers' default_payment if that is what you're asking.

ruby bear
#

I'm just trying to compare the two if you had an example. I can also test this on my end

whole dove
#

Here the card works with /v1/customers: req_i2CMN0BstylNwf

ruby bear
#

Yeah, it does not appear that we support this in test mode. I'm replicating this on my end and will flag this to the team.

whole dove
#

Oh interesting. Thank you. Do you think you'll hear back from them soon?

#

Is it that test cards are not supported on subscriptions in test mode, or that setting cards on subscriptions in general is not supported?

ruby bear
#

I'm testing around on my end

whole dove
#

ty

ruby bear
#

I was able to test on end for both Subscription and Subscription Schedules. I can confirm that it's expected behavior that it does not work.

#

Adding more details..

#

On Subscription and Subscription Schedules, you'd need to add this to the customer as the default payment method first and can use it on Subscriptions.

whole dove
#

Okay, but I don't want to use default payment methods in production. What's a way to ensure my code is working correctly without being able to write unit tests to confirm it works as expected?

ruby bear
whole dove
#

right but card numbers do not work when using SDKs though, right?

#

When writing test code, we don’t recommend using a card number. Instead, use the corresponding PaymentMethod, such as pm_card_visa.

#

We don’t recommend using card numbers directly in API calls or server-side code, even in test mode

ruby bear
#

Not on the server side, but on the client side on your integration.

whole dove
#

you mean in a browser?

#

Does that mean that only manual testing using a browser to collect fake card numbers and manually check the subscription ?

ruby bear
#

That is correct

whole dove
#

😦

#

Does the team have plans to enable test cards with subscriptions so that integration developers can test their code?

#

Our customers would prefer to choose cards on a subscription-by-subscription basis, and we want to ensure we have our logic right and well-tested around that.

ruby bear
#

I'll share this feedback with the team for future product reiterations.

whole dove
#

Thank you.