Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in

Le forum de Communauté ne sera plus disponible à partir du 30 Juin 2025. Le Forum de la communauté n’est pas disponible pour les nouveaux messages ou les réponses; les articles précédents restent disponibles pour vérification. Afin de connaître les options d’assistance complètes, rendez-vous sur PayPal.com/HelpCenter

Si vous souhaitez signaler du contenu illégal et contraire au Règlement sur les services numériques de l’Union Européenne (DSA), veuillez cliquer ici.

since ‎Dec-28-2023
Country: United States
Type: Business
matt-james
matt-james Contributor
Contributor
4
Posts
0
Kudos
0
Solutions
Ice Breaker
The Return
Active
View all
Latest Contributions by matt-james
  • Topics matt-james has Participated In
  • Latest Contributions by matt-james

Re: Test credit card numbers failing in REST API v...

by matt-james Contributor in REST APIs
‎Jan-22-2024 12:05 PM
‎Jan-22-2024 12:05 PM
@KavyarBased on the links that you sent: The first link is what I included in my description, and I've visited it often.  That's where I'm currently generating credit card numbers today.  And they're failing consistently. The third link doesn't go anywhere and redirects me to the developer dashboard - you may want to update your notes. The second link refers to Payflow, which I'm not using - all of my calls are REST API calls, so there is no PayPal interface that I'm using. I'm already talking to MTS about other issues that I'm having with the APIs, so I'll mention this to them.  But they aren't responding quickly.  Any other ideas? ... View more

Test credit card numbers failing in REST API vault...

by matt-james Contributor in REST APIs
‎Jan-18-2024 11:35 AM
‎Jan-18-2024 11:35 AM
I'm trying to use the credit card numbers that I got from https://developer.paypal.com/tools/sandbox/card-testing/, and every card number the I try, I get back "Credit card number is not an accepted test number." when calling https://api-m.sandbox.paypal.com/v3/vault/setup-tokens.  Any ideas what I need to do in order to use these test cards?  Something different in my account?  Or with the request? ... View more

Save Credit Card for later

by matt-james Contributor in REST APIs
‎Jan-17-2024 05:08 AM
‎Jan-17-2024 05:08 AM
Is it possible to save a credit card for use later (much later) with the REST APIs and get a token back that I can use for future purchases.  We're building a platform of a service based organization and are trying to use PayPal as the payment processor and my previous attempts didn't work.  I was trying to use saved tokens in the vault (https://developer.paypal.com/docs/checkout/save-payment-methods/purchase-later/payment-tokens-api/cards/), but after some of the cards I'd stored stopping working, I'm being told that the tokens have a very short life span (though I can't find how long or any documentation to that effect).  Any other ideas?  I have two use cases that I'm trying to cover.  First is just saving the payment method for later, to make paying the next invoice easier.  The second is allowing automatic payment of invoices.  Invoices aren't generated on any kind of schedule or even for the same amount, so subscriptions really aren't going to get me there.  I'm trying to do all of this within my own UI, so I'd rather not have to kick the user over to a PayPal interface to pay.  And, even if I did that for the manual payment option, I don't think that would allow for the automatic option if the user chooses to do so.   Thoughts or options?  API calls that I (apparently) haven't found?   Thanks - Matt ... View more

REST API issues in sandbox

by matt-james Contributor in REST APIs
‎Dec-28-2023 06:13 AM
‎Dec-28-2023 06:13 AM
I'm trying to get my solution working so that I can have customers enter their credit card and then I can reuse that card later for purchases in our platform using PayPal to process the transaction. My issues started yesterday when I was working on running some end-to-end tests on the process.  All of this is done with sandbox endpoints, my account in sandbox mode and with sandbox API credentials. I was able to create a new card and save it in my vault.  I created [removed]and got the setup token back. When I went to use the card, I was able to get the payment token for my card, but I got a 500 error when trying to complete the purchase with no details regarding what had gone wrong. I found some posts saying that certain cards can get into a bad state within PayPal servers, so they recommended using a real card.  I did that, and was again able to get the setup token.  However, when I went to use it, I got the payment token, but a 403 error when trying to complete the purchase.  Again, no details to help with the nature of the error. Digging some more, I found the Card Testing page in the documentation, so I generated card details from there and tried those.  I got the same results as the real card. When looking at the API logs, I noticed that both my /v3/vault/payment-tokens and /v2/checkout/orders had the same debug ID.  Which made me wonder if it didn't like the fact that I was reusing my bearer token for all of the calls in an operation (getting the token and placing the order).  So, I made changes to get a new bearer token for each and every call - no change. Now, this morning, I came in to post this, but I hadn't apparently finished setting up my account.  So, I went through that process.  When I got back to the developer dashboard and tried to gather information for this post, all of my API history was gone.  And, my API credentials had changed.  I've re-run my tests this morning (with a new card created under new API credentials) and I'm still getting a 403. Here's the body of the call that I'm making for the purchase (minus the actual token id): {"intent":"CAPTURE","purchase_units":[{"amount":{"currency_code":"USD","value":"250.00"}}],"payment_source":{"card":{"vault_id":"XXXXXXXXXXXXX"},"stored_credential":{"payment_initiator":"MERCHANT","payment_type":"RECURRING","usage":"SUBSEQUENT"}}}   Any ideas?  Things that I may be missing based on the examples shown at https://developer.paypal.com/docs/checkout/save-payment-methods/purchase-later/payment-tokens-api/cards/?  Or in my account?  It seems like my credentials and base REST mechanism are working properly, so I don't know where in the details I'm having issues.   Thanks, Matt ... View more
Labels:
  • Labels:
  • Payments REST APIs
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2025 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Cookies
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros