For demonstration purposes, we'll first create a new billing plan.
Create the billing plan.
Deleting the plan is done by applying an update to the plan with its state
set to DELETED
.
NOTE: Only the 'replace' operation is supported when updating billing plans. For demonstration purposes, we'll create the
patchRequest
object here to show you how the plan is being deleted.
To make it easier for developers, this functionality has been built into the Plan.Delete()
method.
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.