POST https://api.paypal.com/v1/payments/payment
To create a complete request, combine the operation with the appropriate HTTP headers
and any required JSON payload.
Показать файл
Открыть проект
Свойство | Тип | Описание | |
---|---|---|---|
$liveEndpoint | When you’re set to go live, use the live credentials assigned to your app to generate a new access token to be used with the live URIs. | ||
$payerId | PayPal Payer ID | ||
$testEndpoint | The PayPal REST APIs are supported in two environments. Use the Sandbox environment for testing purposes, then move to the live environment for production processing. When testing, generate an access token with your test credentials to make calls to the Sandbox URIs. When you’re set to go live, use the live credentials assigned to your app to generate a new access token to be used with the live URIs. |
Метод | Описание | |
---|---|---|
getClientId ( ) | ||
getPayerId ( ) | ||
getSecret ( ) | ||
getToken ( ) | ||
sendData ( $data ) | ||
setClientId ( $value ) | ||
setPayerId ( $value ) | ||
setSecret ( $value ) | ||
setToken ( $value ) | ||
toJSON ( $data, integer $options ) : string | Returns object JSON representation required by PayPal. |
Метод | Описание | |
---|---|---|
createResponse ( $data, $statusCode ) | ||
getEndpoint ( ) | ||
getHttpMethod ( ) : string | Get HTTP Method. |
protected getHttpMethod ( ) : string | ||
Результат | string |
protected $liveEndpoint |
protected $testEndpoint |