How can i get the Credit card type by card number using paypal rest api in java
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
As you know when we add credit card using paypal rest api, we need to submit:-
Credit card number,
Expiry month,
Expiry Year,
CVV,
Type
Is there any way to get the credit card type(Visa, Mastercard etc) by card number, I have seen in my ecommerce websites where user type the card number card type automatically displayed, i could not found solution, please help me,
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Thank you for posting to the PayPal Merchant Technical Support Community.
You have a few options to be able to determine the card types. You can use the Standard Card Fields with PayPal Checkout, and PayPal will be able to determine the card type.
The other option is that you could code a script with your form that will auto determine the card type.
Card Starts with the following here are the card types:
- 4 = Visa
- 5 or 2 = MasterCard
- 6 = Discover
- 3 = Amex
Thank you,
Jennifer
PayPal
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Paypal advance checkout in PayPal Payments Standard
- Authorization failed due to insufficient permissions in REST APIs
- Simple easy Checkout integration for me website. in PayPal Payments Standard
- How to add a second parameter onto the PayPal standard payment code block? in PayPal Payments Standard
- Need help to integrate PayPal Advanced Checkout (PPCP) With Shift4Shop? in PayPal Upgrade Community