changing the HTTP method

This commit is contained in:
Ganesh Hegde
2013-05-30 15:39:21 +05:30
parent 3b797097c8
commit d8a1e896bd

View File

@@ -410,7 +410,7 @@ class CreditCard extends PPModel implements IResource {
$apiContext = new ApiContext(self::$credential);
}
$call = new PPRestCall($apiContext);
$json = $call->execute(array('PayPal\Rest\RestHandler'), "/v1/vault/credit-card/{$this->getId()}", "POST", $payLoad);
$json = $call->execute(array('PayPal\Rest\RestHandler'), "/v1/vault/credit-card/{$this->getId()}", "DELETE", $payLoad);
return true;
}
}