Delete or update billing plan API
Roman4852
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Apr-04-2018
06:33 AM
Hello. Sorry for my low English. I need to update or delete billing plan. I use the API $plan-> delete(). But nothing happens and the plan is again active. What I do wrong?
public function delete($apiContext = null, $restCall = null)
{
ArgumentValidator::validate($this->getId(), "Id");
$patchRequest = new PatchRequest();
$patch = new Patch();
$value = new PayPalModel('{
"state":"DELETED"
}');
$patch->setOp('replace')
->setPath('/')
->setValue($value);
$patchRequest->addPatch($patch);
return $this->update($patchRequest, $apiContext, $restCall);
}
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- How do I remove a saved item from invoices? in Business Tools Archives
- where can I find my PayPal business account billing information? in Reporting Archives
- Update customer billing adresse in Merchant Products and Services Archives
- How to set payment description for auto billing notice? in Business Tools Archives
- Billing Details - Postcode for Ireland?? in Merchant Products and Services Archives