#littleape - test card expiry

1 messages ยท Page 1 of 1 (latest)

gilded yoke
#

HI ๐Ÿ‘‹
We have various test card numbers, IDs, and tokens available here:
https://stripe.com/docs/testing
What specifically are you trying to test?

Simulate payments to test your integration.

empty crescent
#

API call /v1/customers/cus_MG0StWAXDQmQCq/sources/card_1LXUR6AaNUE5IeQR6QfFnXrr Where do I get the "card_1LXUR6AaNUE5IeQR6QfFnXrr" from?

gilded yoke
#

That is a specific card ID, you would first need to create a card object.

empty crescent
#

Would that be somewhere inside an existing PaymentMethod ?

gilded yoke
#
  1. Card objects card_XXXXX have been replaced by Payment Method objects pm_XXXXX. You can still have Payment Method objects of type: card and they behave the same. So you can use Payment Methods.
#
  1. What is the overall goal of your testing? I think we are missing something here and I need more context.
empty crescent
#

We use SetupIntent for offline processing of monthly payments. We want to allow clients to update the card expiry

gilded yoke
#

Okay. So do you have an example payment method in your test data?

empty crescent
#

Yes, if I understand thsi correctly I can replace the card_xxx with the pm_xxx in this call and it will update the expiry date of the card behind the pm_xxx ? /v1/customers/cus_MG0StWAXDQmQCq/sources/pm_xxx

gilded yoke
empty crescent
#

the Payment Method API will allow update of card expiry that makes up that PM?

gilded yoke
#

That's the parameters I linked to

empty crescent
#

Ah yes I see it thank you. Damn stripe has the best customer support I've come across ๐Ÿ™‚