Search code examples
paypalpaypal-adaptive-paymentschained-payments

Paypal Adaptive Chained Payment


I am super confused on what this documentation is trying to say.(https://developer.paypal.com/docs/classic/adaptive-payments/integration-guide/APCallsHeadersAndPaymentTypes/)

Basically, I am trying to facilitate payments between 2 users. I also want to have a fee paid to me during this transaction. The confusing part of the documentation are the headers.

According to the reference you need these.

headers.put("X-PAYPAL-SECURITY-USERID", "tok261_biz_api.abc.com");
headers.put("X-PAYPAL-SECURITY-PASSWORD","123456");
headers.put("X-PAYPAL-SECURITY-SIGNATURE","Signature"
headers.put("X-PAYPAL-REQUEST-DATA-FORMAT", "JSON");
headers.put("X-PAYPAL-RESPONSE-DATA-FORMAT", "JSON");
headers.put("X-PAYPAL-APPLICATION-ID", "APP-APPID");

I don't know what to put for X-PAYPAL-SECURITY-USERID or X-PAYPAL-SECURITY-PASSWORD. I do not want to put my actual username and password. Is this what I am supposed to be doing to achieve this?


Solution

  • Those are your API credentials. You obtain those values in your PayPal profile under API Access, then choose the signature method.

    Alternatively, you can click this link and login with your PayPal account to quickly obtain those values.