Discussions

Ask a Question
Back to All

Making my payment method saved for Customer

I am trying to create a subscription using the Subscriptions API. I need to be able to save all the payment methods that the user has. These will be used for two purposes: Express checkout (automatically inputting the card details) and changing the Payment Method of a Subscription.

In testing, I noticed that the payment method is not being saved to the customer. I checked this through the API request of this documentation: https://developers.paymongo.com/reference/retrieve-customer-payment-method. It only returned this:

{
  "has_more": false,
  "data": []
}

For testing purposes: I used PayMongo's card test case: 412000000000000