Not allowed to save cards with Payment Method Tokens Api in sandbox mode

NicolaiAltwegg
Contributor
Contributor

I am trying to save card payment method using Payment Method Tokens Api in sandbox mode. For example i used American Express test card [removed], but when i try to create setup token of this card i get an error, see below.

 

  name: 'NOT_AUTHORIZED',
   message: 'Authorization failed due to insufficient permissions.',
   debug_id: 'f72e6a41e9a4',
   details: [{
   issue: 'NOT_ENABLED_TO_VAULT_PAYMENT_SOURCE',
   description: 'The API caller or the merchant on whose behalf the API call is initiated is not allowed to vault the given source. Please contact PayPal       customer support for assistance.'
   }]

 

I used the same card to create setup token, but with app based on US country, and it worked fine.

Login to Me Too
2 REPLIES 2

Propho
Contributor
Contributor
Ran into the same error just now on my WooCommerce checkout. Were you able to get it sorted out?
Login to Me Too

Propho
Contributor
Contributor
Solved it! Just had to get my PayPal account validated for storing customer payment info. When I completed that short process, subscriptions went through the checkout on my WooCommerce site just fine.
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.