Open Monograph Press
3.3.0
|
Protected Member Functions | |
createResponse ($data, $statusCode) | |
createResponse ($data, $statusCode) | |
getEndpoint () | |
getEndpoint () | |
![]() | |
getHttpMethod () | |
getHttpMethod () | |
![]() | |
getCurrencies () | |
getParameter ($key) | |
setParameter ($key, $value) | |
setParameter ($key, $value) | |
Additional Inherited Members | |
![]() | |
const | API_VERSION = 'v1' |
![]() | |
$liveEndpoint = 'https://api.paypal.com' | |
$payerId = null | |
$testEndpoint = 'https://api.sandbox.paypal.com' | |
![]() | |
$currencies | |
$httpClient | |
$httpRequest | |
$negativeAmountAllowed = false | |
$parameters | |
$response | |
$zeroAmountAllowed = true | |
PayPal REST Create Subscription Request
Use this call to create a billing agreement for the buyer. The response for this call includes these HATEOAS links: an approval_url link and an execute link. Each returned link includes the token for the agreement.
For PayPal payments:
Note: Billing agreements for credit card payments execute automatically when created. There is no need for the user to approve the agreement or to execute the agreement.
Pass the agreement details in the body of a POST call, including the following agreement object properties:
// Create a gateway for the PayPal REST Gateway // (routes to GatewayFactory::create) $gateway = Omnipay::create('PayPal_Rest');
// Initialise the gateway $gateway->initialize(array( 'clientId' => 'MyPayPalClientId', 'secret' => 'MyPayPalSecret', 'testMode' => true, // Or false when you are ready for live transactions ));
// Do a create plan transaction on the gateway $transaction = $gateway->createPlan(array( 'name' => 'Test Plan', 'description' => 'A plan created for testing', 'type' => $gateway::BILLING_PLAN_TYPE_FIXED, 'paymentDefinitions' => [ [ 'name' => 'Monthly Payments for 12 months', 'type' => $gateway::PAYMENT_TRIAL, 'frequency' => $gateway::BILLING_PLAN_FREQUENCY_MONTH, 'frequency_interval' => 1, 'cycles' => 12, 'amount' => ['value' => 10.00, 'currency' => 'USD'], ], ], )); $response = $transaction->send(); if ($response->isSuccessful()) { echo "Create Plan transaction was successful!\n"; $plan_id = $response->getTransactionReference(); echo "Plan reference = " . $plan_id . "\n"; }
// Do a create subscription transaction on the gateway $transaction = $gateway->createSubscription(array( 'name' => 'Test Subscription', 'description' => 'A subscription created for testing', 'startDate' => new \DateTime(), // now 'planId' => $plan_id, 'payerDetails => ['payment_method' => 'paypal'], )); $response = $transaction->send(); if ($response->isSuccessful()) { echo "Create Subscription transaction was successful!\n"; if ($response->isRedirect()) { echo "Response is a redirect\n"; echo "Redirect URL = " . $response->getRedirectUrl(); $subscription_id = $response->getTransactionReference(); echo "Subscription reference = " . $subscription_id; } }
This is from the PayPal web site:
curl -v POST https://api.sandbox.paypal.com/v1/payments/billing-agreements \ -H 'Content-Type:application/json' \ -H 'Authorization: Bearer <Access-Token>' \ -d '{ "name": "T-Shirt of the Month Club Agreement", "description": "Agreement for T-Shirt of the Month Club Plan", "start_date": "2015-02-19T00:37:04Z", "plan": { "id": "P-94458432VR012762KRWBZEUA" }, "payer": { "payment_method": "paypal" }, "shipping_address": { "line1": "111 First Street", "city": "Saratoga", "state": "CA", "postal_code": "95070", "country_code": "US" } }' }'
This is from the PayPal web site:
{ "name": "T-Shirt of the Month Club Agreement", "description": "Agreement for T-Shirt of the Month Club Plan", "plan": { "id": "P-94458432VR012762KRWBZEUA", "state": "ACTIVE", "name": "T-Shirt of the Month Club Plan", "description": "Template creation.", "type": "FIXED", "payment_definitions": [ { "id": "PD-50606817NF8063316RWBZEUA", "name": "Regular Payments", "type": "REGULAR", "frequency": "Month", "amount": { "currency": "USD", "value": "100" }, "charge_models": [ { "id": "CHM-92S85978TN737850VRWBZEUA", "type": "TAX", "amount": { "currency": "USD", "value": "12" } }, { "id": "CHM-55M5618301871492MRWBZEUA", "type": "SHIPPING", "amount": { "currency": "USD", "value": "10" } } ], "cycles": "12", "frequency_interval": "2" } ], "merchant_preferences": { "setup_fee": { "currency": "USD", "value": "1" }, "max_fail_attempts": "0", "return_url": "http://www.return.com", "cancel_url": "http://www.cancel.com", "auto_bill_amount": "YES", "initial_fail_amount_action": "CONTINUE" } }, "links": [ { "href": "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-0JP008296V451950C", "rel": "approval_url", "method": "REDIRECT" }, { "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/EC-0JP008296V451950C/agreement-execute", "rel": "execute", "method": "POST" } ], "start_date": "2015-02-19T00:37:04Z" }
PayPal subscription payments cannot be refunded. PayPal is working on this functionality for their future API release. In order to refund a PayPal subscription payment, you will need to use the PayPal web interface to refund it manually.
RestCreatePlanRequest Omnipay PayPal REST Create Subscription Request Use this call to create a billing agreement for the buyer. The response for this call includes these HATEOAS links: an approval_url link and an execute link. Each returned link includes the token for the agreement. For PayPal payments: After successfully creating the agreement, direct the user to the approval_url on the PayPal site so that the user can approve the agreement.Call the execute link to execute the billing agreement. Note: Billing agreements for credit card payments execute automatically when created. There is no need for the user to approve the agreement or to execute the agreement. autotoc_md76 Request Data Pass the agreement details in the body of a POST call, including the following agreement object properties: name (string). Required.description (string). Required.start_date (string). Format yyyy-MM-dd z, as defined in ISO8601. Required.agreement_details (array)payer (array). Requiredshipping_address (array). Should be provided if it is different to the default address.override_merchant_preferences (array).override_charge_models (array).plan (array). Required. autotoc_md77 Example // Create a gateway for the PayPal REST Gateway // (routes to GatewayFactory::create) $gateway = Omnipay::create('PayPal_Rest'); // Initialise the gateway $gateway->initialize(array( 'clientId' => 'MyPayPalClientId', 'secret' => 'MyPayPalSecret', 'testMode' => true, // Or false when you are ready for live transactions )); // Do a create plan transaction on the gateway $transaction = $gateway->createPlan(array( 'name' => 'Test Plan', 'description' => 'A plan created for testing', 'type' => $gateway::BILLING_PLAN_TYPE_FIXED, 'paymentDefinitions' => [ [ 'name' => 'Monthly Payments for 12 months', 'type' => $gateway::PAYMENT_TRIAL, 'frequency' => $gateway::BILLING_PLAN_FREQUENCY_MONTH, 'frequency_interval' => 1, 'cycles' => 12, 'amount' => ['value' => 10.00, 'currency' => 'USD'], ], ], )); $response = $transaction->send(); if ($response->isSuccessful()) { echo "Create Plan transaction was successful!\n"; $plan_id = $response->getTransactionReference(); echo "Plan reference = " . $plan_id . "\n"; } // Do a create subscription transaction on the gateway $transaction = $gateway->createSubscription(array( 'name' => 'Test Subscription', 'description' => 'A subscription created for testing', 'startDate' => new (), // now 'planId' => $plan_id, 'payerDetails => ['payment_method' => 'paypal'], )); $response = $transaction->send(); if ($response->isSuccessful()) { echo "Create Subscription transaction was successful!\n"; if ($response->isRedirect()) { echo "Response is a redirect\n"; echo "Redirect URL = " . $response->getRedirectUrl(); $subscription_id = $response->getTransactionReference(); echo "Subscription reference = " . $subscription_id; } }
autotoc_md78 Request Sample This is from the PayPal web site: curl -v POST https://api.sandbox.paypal.com/v1/payments/billing-agreements \ -H 'Content-Type:application/json' \ -H 'Authorization: Bearer <Access-Token>' \ -d '{ "name": "T-Shirt of the Month Club Agreement", "description": "Agreement for T-Shirt of the Month Club Plan", "start_date": "2015-02-19T00:37:04Z", "plan": { "id": "P-94458432VR012762KRWBZEUA" }, "payer": { "payment_method": "paypal" }, "shipping_address": { "line1": "111 First Street", "city": "Saratoga", "state": "CA", "postal_code": "95070", "country_code": "US" } }' }'
autotoc_md79 Response Sample This is from the PayPal web site: { "name": "T-Shirt of the Month Club Agreement", "description": "Agreement for T-Shirt of the Month Club Plan", "plan": { "id": "P-94458432VR012762KRWBZEUA", "state": "ACTIVE", "name": "T-Shirt of the Month Club Plan", "description": "Template creation.", "type": "FIXED", "payment_definitions": [ { "id": "PD-50606817NF8063316RWBZEUA", "name": "Regular Payments", "type": "REGULAR", "frequency": "Month", "amount": { "currency": "USD", "value": "100" }, "charge_models": [ { "id": "CHM-92S85978TN737850VRWBZEUA", "type": "TAX", "amount": { "currency": "USD", "value": "12" } }, { "id": "CHM-55M5618301871492MRWBZEUA", "type": "SHIPPING", "amount": { "currency": "USD", "value": "10" } } ], "cycles": "12", "frequency_interval": "2" } ], "merchant_preferences": { "setup_fee": { "currency": "USD", "value": "1" }, "max_fail_attempts": "0", "return_url": "http://www.return.com", "cancel_url": "http://www.cancel.com", "auto_bill_amount": "YES", "initial_fail_amount_action": "CONTINUE" } }, "links": [ { "href": "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-0JP008296V451950C", "rel": "approval_url", "method": "REDIRECT" }, { "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/EC-0JP008296V451950C/agreement-execute", "rel": "execute", "method": "POST" } ], "start_date": "2015-02-19T00:37:04Z" }
autotoc_md80 Known Issues PayPal subscription payments cannot be refunded. PayPal is working on this functionality for their future API release. In order to refund a PayPal subscription payment, you will need to use the PayPal web interface to refund it manually. https://developer.paypal.com/docs/api/#create-an-agreement RestCreatePlanRequest Omnipay
Definition at line 211 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
|
protected |
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 453 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
|
protected |
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 453 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::getAgreementDetails | ( | ) |
Get the agreement details
See the class documentation and the PayPal REST API documentation for a description of the array elements.
Definition at line 285 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\getParameter().
Referenced by Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getData().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::getAgreementDetails | ( | ) |
Get the agreement details
See the class documentation and the PayPal REST API documentation for a description of the array elements.
Definition at line 285 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\getParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::getChargeModel | ( | ) |
Get charge model to override the plan charge model
See the class documentation and the PayPal REST API documentation for a description of the array elements.
Definition at line 401 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\getParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::getChargeModel | ( | ) |
Get charge model to override the plan charge model
See the class documentation and the PayPal REST API documentation for a description of the array elements.
Definition at line 401 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\getParameter().
Referenced by Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getData().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::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 421 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getAgreementDetails(), Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getChargeModel(), Omnipay\Common\Message\AbstractRequest\getDescription(), Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getMerchantPreferences(), Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getName(), Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getPayerDetails(), Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getPlanId(), Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getShippingAddress(), Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getStartDate(), and Omnipay\Common\Message\AbstractRequest\validate().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::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 421 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getAgreementDetails(), Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getChargeModel(), Omnipay\Common\Message\AbstractRequest\getDescription(), Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getMerchantPreferences(), Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getName(), Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getPayerDetails(), Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getPlanId(), Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getShippingAddress(), Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getStartDate(), and Omnipay\Common\Message\AbstractRequest\validate().
|
protected |
Get transaction endpoint.
Subscriptions are created using the /billing-agreements resource.
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 448 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
|
protected |
Get transaction endpoint.
Subscriptions are created using the /billing-agreements resource.
Reimplemented from Omnipay\PayPal\Message\AbstractRestRequest.
Definition at line 448 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::getMerchantPreferences | ( | ) |
Get preferences to override the plan merchant preferences
See the class documentation and the PayPal REST API documentation for a description of the array elements.
Definition at line 372 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\getParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::getMerchantPreferences | ( | ) |
Get preferences to override the plan merchant preferences
See the class documentation and the PayPal REST API documentation for a description of the array elements.
Definition at line 372 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\getParameter().
Referenced by Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getData().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::getName | ( | ) |
Get the agreement name
Definition at line 218 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\getParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::getName | ( | ) |
Get the agreement name
Definition at line 218 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\getParameter().
Referenced by Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getData().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::getPayerDetails | ( | ) |
Get the payer details
See the class documentation and the PayPal REST API documentation for a description of the array elements.
Definition at line 314 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\getParameter().
Referenced by Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getData().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::getPayerDetails | ( | ) |
Get the payer details
See the class documentation and the PayPal REST API documentation for a description of the array elements.
Definition at line 314 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\getParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::getPlanId | ( | ) |
Get the plan ID
Definition at line 239 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\getParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::getPlanId | ( | ) |
Get the plan ID
Definition at line 239 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\getParameter().
Referenced by Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getData().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::getShippingAddress | ( | ) |
Get the shipping address
See the class documentation and the PayPal REST API documentation for a description of the array elements.
Definition at line 343 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\getParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::getShippingAddress | ( | ) |
Get the shipping address
See the class documentation and the PayPal REST API documentation for a description of the array elements.
Definition at line 343 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\getParameter().
Referenced by Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getData().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::getStartDate | ( | ) |
Get the agreement start date
Definition at line 260 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\getParameter().
Referenced by Omnipay\PayPal\Message\RestCreateSubscriptionRequest\getData().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::getStartDate | ( | ) |
Get the agreement start date
Definition at line 260 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\getParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::setAgreementDetails | ( | array | $value | ) |
Set the agreement details
See the class documentation and the PayPal REST API documentation for a description of the array elements.
array | $value |
Definition at line 300 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\setParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::setAgreementDetails | ( | array | $value | ) |
Set the agreement details
See the class documentation and the PayPal REST API documentation for a description of the array elements.
array | $value |
Definition at line 300 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\setParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::setChargeModel | ( | array | $value | ) |
Set preferences to override the plan merchant preferences
See the class documentation and the PayPal REST API documentation for a description of the array elements.
array | $value |
Definition at line 416 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\setParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::setChargeModel | ( | array | $value | ) |
Set preferences to override the plan merchant preferences
See the class documentation and the PayPal REST API documentation for a description of the array elements.
array | $value |
Definition at line 416 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\setParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::setMerchantPreferences | ( | array | $value | ) |
Set preferences to override the plan merchant preferences
See the class documentation and the PayPal REST API documentation for a description of the array elements.
array | $value |
Definition at line 387 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\setParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::setMerchantPreferences | ( | array | $value | ) |
Set preferences to override the plan merchant preferences
See the class documentation and the PayPal REST API documentation for a description of the array elements.
array | $value |
Definition at line 387 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\setParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::setName | ( | $value | ) |
Set the agreement name
string | $value |
Definition at line 229 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\setParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::setName | ( | $value | ) |
Set the agreement name
string | $value |
Definition at line 229 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\setParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::setPayerDetails | ( | array | $value | ) |
Set the payer details
See the class documentation and the PayPal REST API documentation for a description of the array elements.
array | $value |
Definition at line 329 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\setParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::setPayerDetails | ( | array | $value | ) |
Set the payer details
See the class documentation and the PayPal REST API documentation for a description of the array elements.
array | $value |
Definition at line 329 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\setParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::setPlanId | ( | $value | ) |
Set the plan ID
string | $value |
Definition at line 250 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\setParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::setPlanId | ( | $value | ) |
Set the plan ID
string | $value |
Definition at line 250 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\setParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::setShippingAddress | ( | array | $value | ) |
Set the shipping address
See the class documentation and the PayPal REST API documentation for a description of the array elements.
array | $value |
Definition at line 358 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\setParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::setShippingAddress | ( | array | $value | ) |
Set the shipping address
See the class documentation and the PayPal REST API documentation for a description of the array elements.
array | $value |
Definition at line 358 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\setParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::setStartDate | ( | \DateTime | $value | ) |
Set the agreement start date
\DateTime | $value |
Definition at line 271 of file vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\setParameter().
Omnipay\PayPal\Message\RestCreateSubscriptionRequest::setStartDate | ( | \DateTime | $value | ) |
Set the agreement start date
\DateTime | $value |
Definition at line 271 of file lib/vendor/omnipay/paypal/src/Message/RestCreateSubscriptionRequest.php.
References Omnipay\Common\Message\AbstractRequest\setParameter().