Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Working Of Paypal Rest API

Tags:

php

paypal

I am not able to understand the Paypal API correctly. I am trying to understand the PHP SDK used for payments.

I tried to check out the Paypal Integration as well.

What I am not able to understand is.

  1. Does it not require logging in a user?

  2. What does it really mean Storing a Credit Card with Paypal. Does this mean that the Credit Card is stored in API or the Credit Card is stored in a Paypal User's Profile

  3. How should I go about carrying Recurring Payments in this. I understand I need to use the Credit Card ID to get all the Credit Card details, and there by carry the payments. Does this mean, I have to store the Credit Card ID in my Database and therefore use it for future recurring payments/subscriptons? Do I also have to store the Payer ID?

  4. How should I go about getting the User's Details. If lets say, the 1st point is wrong and it does require a user login, then how should I go about getting the Credit Card details already stored in that user's account?

  5. I don't want the user to go to Paypal's site, I mean, the payment should be carried out totally on my website without getting redirected to Paypal. How should I go about doing that?

Can you please explain me step by step on how to go about carrying out the payments(Recurring Payments with Paypal API). I don't need any code, just need to know how it works and what steps to take and when for a secured payment.

like image 272
prateekkathal Avatar asked Mar 12 '14 13:03

prateekkathal


1 Answers

Here is the information in regards to the RESTful APIs:

  1. PayPal payments require a redirect to PayPal. Direct Credit Card payments are supported for certain countries which can be found here.
  2. When you use Vault, PayPal will swap the card information for a Card ID that you will then utilize later for charging that customer. More information can be found here.
  3. Yes, you will need to store the Card ID and Payer ID (if used) so that you can reference those later to charge the customer. If you use a Payer ID initially when storing the card, then you will also need to pass it along with the Card ID later when doing the payment. More information on this can be found on the same page as the link in #2 above.
  4. PayPal will not provide you card details from a customer's PayPal account. If you are wanting to charge a customer's card at a later time, you will need to utilize the Vault feature. Again, keep in mind that since Vault used Direct Credit Card for processing, you'd have to be registered in a supported country (link in #1 above).
  5. Please reference #1 above.
like image 82
PP_MTS_Cory Avatar answered Oct 09 '22 08:10

PP_MTS_Cory