Create the web experience profile
Setup the redirect URI to use. The guid value is used to keep the flow information.
Create the payment
Use the returned payment's approval URL to redirect the buyer to PayPal and approve the payment.
Using the information from the redirect, setup the payment to execute.
Execute the payment.
Cleanup - Because there's a limit to the number of experience profile IDs you can create, we'll delete the one that was created for this sample.
For more information, please visit PayPal Developer REST API Reference.
Api Context
Pass in a
APIContext
object to authenticate the call and to send a unique request id (that ensures idempotency). The SDK generates a request id if you do not pass one explicitly. See Configuration.cs to know more about APIContext.