Open Journal Systems
3.3.0
|
Additional Inherited Members | |
![]() | |
const | API_VERSION = 'v1' |
![]() | |
createResponse ($data, $statusCode) | |
createResponse ($data, $statusCode) | |
![]() | |
getCurrencies () | |
getParameter ($key) | |
setParameter ($key, $value) | |
setParameter ($key, $value) | |
![]() | |
$liveEndpoint = 'https://api.paypal.com' | |
$payerId = null | |
$testEndpoint = 'https://api.sandbox.paypal.com' | |
![]() | |
$currencies | |
$httpClient | |
$httpRequest | |
$negativeAmountAllowed = false | |
$parameters | |
$response | |
$zeroAmountAllowed = true | |
PayPal REST Delete Card Request
PayPal offers merchants a /vault API to store sensitive details like credit card related details.
You can currently use the /vault API to store credit card details with PayPal instead of storing them on your own server. After storing a credit card, you can then pass the credit card id instead of the related credit card details to complete a payment.
Direct credit card payment and related features are restricted in some countries. As of January 2015 these transactions are only supported in the UK and in the USA.
Example. This example assumes that the card has already been created using a RestCreateCardRequest call and that the card ID has been stored in $card_id. See RestCreateCardRequest for the details of the first part of this process.
$transaction = $gateway->deleteCard(); $transaction->setCardReference($card_id); $response = $transaction->send(); if ($response->isSuccessful()) { echo "Gateway deleteCard was successful.\n"; } else { echo "Gateway deleteCard failed.\n"; }
https://developer.paypal.com/docs/api/#delete-a-stored-credit-card http://bit.ly/1wUQ33R RestCreateCardRequest
Definition at line 45 of file lib/vendor/omnipay/paypal/src/Message/RestDeleteCardRequest.php.
Omnipay\PayPal\Message\RestDeleteCardRequest::getData | ( | ) |
Get the raw data array for this message. The format of this varies from gateway to gateway, but will usually be either an associative array, or a SimpleXMLElement.
Implements Omnipay\Common\Message\MessageInterface.
Definition at line 52 of file lib/vendor/omnipay/paypal/src/Message/RestDeleteCardRequest.php.
References Omnipay\Common\Message\AbstractRequest\validate().
Omnipay\PayPal\Message\RestDeleteCardRequest::getData | ( | ) |
Get the raw data array for this message. The format of this varies from gateway to gateway, but will usually be either an associative array, or a SimpleXMLElement.
Implements Omnipay\Common\Message\MessageInterface.
Definition at line 52 of file vendor/omnipay/paypal/src/Message/RestDeleteCardRequest.php.
References Omnipay\Common\Message\AbstractRequest\validate().
Omnipay\PayPal\Message\RestDeleteCardRequest::getEndpoint | ( | ) |
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 58 of file vendor/omnipay/paypal/src/Message/RestDeleteCardRequest.php.
References Omnipay\Common\Message\AbstractRequest\getCardReference().
Omnipay\PayPal\Message\RestDeleteCardRequest::getEndpoint | ( | ) |
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 58 of file lib/vendor/omnipay/paypal/src/Message/RestDeleteCardRequest.php.
References Omnipay\Common\Message\AbstractRequest\getCardReference().
Omnipay\PayPal\Message\RestDeleteCardRequest::getHttpMethod | ( | ) |
Get HTTP Method.
This is nearly always POST but can be over-ridden in sub classes.
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 47 of file vendor/omnipay/paypal/src/Message/RestDeleteCardRequest.php.
Omnipay\PayPal\Message\RestDeleteCardRequest::getHttpMethod | ( | ) |
Get HTTP Method.
This is nearly always POST but can be over-ridden in sub classes.
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 47 of file lib/vendor/omnipay/paypal/src/Message/RestDeleteCardRequest.php.