A resource representing a Payer that funds a payment
Use the List of FundingInstrument and the Payment Method
as 'credit_card'
Let's you specify a payment amount.
A transaction defines the contract of a
payment - what is the payment for and who
is fulfilling it. Transaction is created with
a Payee and Amount types
Set the urls that the buyer must be redirected to after payment approval/ cancellation.
A Payment Resource; create one using the above types and intent as 'sale'
Create a payment by posting to the APIService
using a valid apiContext.
(See bootstrap.php for more on ApiContext)
The return object contains the status and the
url to which the buyer must be redirected to
for payment approval
Retrieve buyer approval url from the payment object.
Create Payment using PayPal as payment method
This sample code demonstrates how you can process a PayPal Account based Payment. API used: /v1/payments/payment