PHP Класс PayPal\Service\AdaptivePaymentsService

Наследование: extends PayPal\Core\PPBaseService
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$SDK_NAME SDK Name
$SDK_VERSION SDK Version

Открытые методы

Метод Описание
CancelPreapproval ( CancelPreapprovalRequest $cancelPreapprovalRequest, mixed $apiCredential = NULL ) : Types\AP\CancelPreapprovalResponse Service Call: CancelPreapproval
ConfirmPreapproval ( ConfirmPreapprovalRequest $confirmPreapprovalRequest, mixed $apiCredential = NULL ) : Types\AP\ConfirmPreapprovalResponse Service Call: ConfirmPreapproval
ConvertCurrency ( ConvertCurrencyRequest $convertCurrencyRequest, mixed $apiCredential = NULL ) : Types\AP\ConvertCurrencyResponse Service Call: ConvertCurrency
ExecutePayment ( ExecutePaymentRequest $executePaymentRequest, mixed $apiCredential = NULL ) : Types\AP\ExecutePaymentResponse Service Call: ExecutePayment
GetAllowedFundingSources ( GetAllowedFundingSourcesRequest $getAllowedFundingSourcesRequest, mixed $apiCredential = NULL ) : Types\AP\GetAllowedFundingSourcesResponse Service Call: GetAllowedFundingSources
GetAvailableShippingAddresses ( GetAvailableShippingAddressesRequest $getAvailableShippingAddressesRequest, mixed $apiCredential = NULL ) : Types\AP\GetAvailableShippingAddressesResponse Service Call: GetAvailableShippingAddresses
GetFundingPlans ( GetFundingPlansRequest $getFundingPlansRequest, mixed $apiCredential = NULL ) : Types\AP\GetFundingPlansResponse Service Call: GetFundingPlans
GetPaymentOptions ( GetPaymentOptionsRequest $getPaymentOptionsRequest, mixed $apiCredential = NULL ) : Types\AP\GetPaymentOptionsResponse Service Call: GetPaymentOptions
GetPrePaymentDisclosure ( GetPrePaymentDisclosureRequest $getPrePaymentDisclosureRequest, mixed $apiCredential = NULL ) : Types\AP\GetPrePaymentDisclosureResponse Service Call: GetPrePaymentDisclosure
GetShippingAddresses ( GetShippingAddressesRequest $getShippingAddressesRequest, mixed $apiCredential = NULL ) : Types\AP\GetShippingAddressesResponse Service Call: GetShippingAddresses
GetUserLimits ( GetUserLimitsRequest $getUserLimitsRequest, mixed $apiCredential = NULL ) : Types\AP\GetUserLimitsResponse Service Call: GetUserLimits
Pay ( PayRequest $payRequest, mixed $apiCredential = NULL ) : Types\AP\PayResponse Service Call: Pay
PaymentDetails ( PaymentDetailsRequest $paymentDetailsRequest, mixed $apiCredential = NULL ) : Types\AP\PaymentDetailsResponse Service Call: PaymentDetails
Preapproval ( PreapprovalRequest $preapprovalRequest, mixed $apiCredential = NULL ) : Types\AP\PreapprovalResponse Service Call: Preapproval
PreapprovalDetails ( PreapprovalDetailsRequest $preapprovalDetailsRequest, mixed $apiCredential = NULL ) : Types\AP\PreapprovalDetailsResponse Service Call: PreapprovalDetails
Refund ( RefundRequest $refundRequest, mixed $apiCredential = NULL ) : Types\AP\RefundResponse Service Call: Refund
SetPaymentOptions ( SetPaymentOptionsRequest $setPaymentOptionsRequest, mixed $apiCredential = NULL ) : Types\AP\SetPaymentOptionsResponse Service Call: SetPaymentOptions
__construct ( $config = null )

Описание методов

CancelPreapproval() публичный Метод

Service Call: CancelPreapproval
public CancelPreapproval ( CancelPreapprovalRequest $cancelPreapprovalRequest, mixed $apiCredential = NULL ) : Types\AP\CancelPreapprovalResponse
$cancelPreapprovalRequest CancelPreapprovalRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Результат Types\AP\CancelPreapprovalResponse

ConfirmPreapproval() публичный Метод

Service Call: ConfirmPreapproval
public ConfirmPreapproval ( ConfirmPreapprovalRequest $confirmPreapprovalRequest, mixed $apiCredential = NULL ) : Types\AP\ConfirmPreapprovalResponse
$confirmPreapprovalRequest ConfirmPreapprovalRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Результат Types\AP\ConfirmPreapprovalResponse

ConvertCurrency() публичный Метод

Service Call: ConvertCurrency
public ConvertCurrency ( ConvertCurrencyRequest $convertCurrencyRequest, mixed $apiCredential = NULL ) : Types\AP\ConvertCurrencyResponse
$convertCurrencyRequest ConvertCurrencyRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Результат Types\AP\ConvertCurrencyResponse

ExecutePayment() публичный Метод

Service Call: ExecutePayment
public ExecutePayment ( ExecutePaymentRequest $executePaymentRequest, mixed $apiCredential = NULL ) : Types\AP\ExecutePaymentResponse
$executePaymentRequest ExecutePaymentRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Результат Types\AP\ExecutePaymentResponse

GetAllowedFundingSources() публичный Метод

Service Call: GetAllowedFundingSources
public GetAllowedFundingSources ( GetAllowedFundingSourcesRequest $getAllowedFundingSourcesRequest, mixed $apiCredential = NULL ) : Types\AP\GetAllowedFundingSourcesResponse
$getAllowedFundingSourcesRequest GetAllowedFundingSourcesRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Результат Types\AP\GetAllowedFundingSourcesResponse

GetAvailableShippingAddresses() публичный Метод

Service Call: GetAvailableShippingAddresses
public GetAvailableShippingAddresses ( GetAvailableShippingAddressesRequest $getAvailableShippingAddressesRequest, mixed $apiCredential = NULL ) : Types\AP\GetAvailableShippingAddressesResponse
$getAvailableShippingAddressesRequest GetAvailableShippingAddressesRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Результат Types\AP\GetAvailableShippingAddressesResponse

GetFundingPlans() публичный Метод

Service Call: GetFundingPlans
public GetFundingPlans ( GetFundingPlansRequest $getFundingPlansRequest, mixed $apiCredential = NULL ) : Types\AP\GetFundingPlansResponse
$getFundingPlansRequest GetFundingPlansRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Результат Types\AP\GetFundingPlansResponse

GetPaymentOptions() публичный Метод

Service Call: GetPaymentOptions
public GetPaymentOptions ( GetPaymentOptionsRequest $getPaymentOptionsRequest, mixed $apiCredential = NULL ) : Types\AP\GetPaymentOptionsResponse
$getPaymentOptionsRequest GetPaymentOptionsRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Результат Types\AP\GetPaymentOptionsResponse

GetPrePaymentDisclosure() публичный Метод

Service Call: GetPrePaymentDisclosure
public GetPrePaymentDisclosure ( GetPrePaymentDisclosureRequest $getPrePaymentDisclosureRequest, mixed $apiCredential = NULL ) : Types\AP\GetPrePaymentDisclosureResponse
$getPrePaymentDisclosureRequest GetPrePaymentDisclosureRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Результат Types\AP\GetPrePaymentDisclosureResponse

GetShippingAddresses() публичный Метод

Service Call: GetShippingAddresses
public GetShippingAddresses ( GetShippingAddressesRequest $getShippingAddressesRequest, mixed $apiCredential = NULL ) : Types\AP\GetShippingAddressesResponse
$getShippingAddressesRequest GetShippingAddressesRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Результат Types\AP\GetShippingAddressesResponse

GetUserLimits() публичный Метод

Service Call: GetUserLimits
public GetUserLimits ( GetUserLimitsRequest $getUserLimitsRequest, mixed $apiCredential = NULL ) : Types\AP\GetUserLimitsResponse
$getUserLimitsRequest GetUserLimitsRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Результат Types\AP\GetUserLimitsResponse

Pay() публичный Метод

Service Call: Pay
public Pay ( PayRequest $payRequest, mixed $apiCredential = NULL ) : Types\AP\PayResponse
$payRequest PayRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Результат Types\AP\PayResponse

PaymentDetails() публичный Метод

Service Call: PaymentDetails
public PaymentDetails ( PaymentDetailsRequest $paymentDetailsRequest, mixed $apiCredential = NULL ) : Types\AP\PaymentDetailsResponse
$paymentDetailsRequest PaymentDetailsRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Результат Types\AP\PaymentDetailsResponse

Preapproval() публичный Метод

Service Call: Preapproval
public Preapproval ( PreapprovalRequest $preapprovalRequest, mixed $apiCredential = NULL ) : Types\AP\PreapprovalResponse
$preapprovalRequest PreapprovalRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Результат Types\AP\PreapprovalResponse

PreapprovalDetails() публичный Метод

Service Call: PreapprovalDetails
public PreapprovalDetails ( PreapprovalDetailsRequest $preapprovalDetailsRequest, mixed $apiCredential = NULL ) : Types\AP\PreapprovalDetailsResponse
$preapprovalDetailsRequest PreapprovalDetailsRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Результат Types\AP\PreapprovalDetailsResponse

Refund() публичный Метод

Service Call: Refund
public Refund ( RefundRequest $refundRequest, mixed $apiCredential = NULL ) : Types\AP\RefundResponse
$refundRequest RefundRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Результат Types\AP\RefundResponse

SetPaymentOptions() публичный Метод

Service Call: SetPaymentOptions
public SetPaymentOptions ( SetPaymentOptionsRequest $setPaymentOptionsRequest, mixed $apiCredential = NULL ) : Types\AP\SetPaymentOptionsResponse
$setPaymentOptionsRequest SetPaymentOptionsRequest
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
Результат Types\AP\SetPaymentOptionsResponse

__construct() публичный Метод

public __construct ( $config = null )
$config - Dynamic config map. This takes the higher precedence if config file is also present.

Описание свойств

$SDK_NAME защищенное статическое свойство

SDK Name
protected static $SDK_NAME

$SDK_VERSION защищенное статическое свойство

SDK Version
protected static $SDK_VERSION