From d8a1e896bdf2114c4d440587b5a3f1cf51af1fd3 Mon Sep 17 00:00:00 2001 From: Ganesh Hegde <1ganesh1@facebook.com> Date: Thu, 30 May 2013 15:39:21 +0530 Subject: [PATCH] changing the HTTP method --- lib/PayPal/Api/CreditCard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PayPal/Api/CreditCard.php b/lib/PayPal/Api/CreditCard.php index 7e13b7d..cd0ee91 100644 --- a/lib/PayPal/Api/CreditCard.php +++ b/lib/PayPal/Api/CreditCard.php @@ -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; } }