PHP 클래스 Omnipay\PayPal\Message\AbstractRestRequest

This class forms the base class for PayPal REST requests via the PayPal REST APIs. A complete REST operation is formed by combining an HTTP method (or “verb”) with the full URI to the resource you’re addressing. For example, here is the operation to create a new payment: 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.
또한 보기: Omnipay\PayPal\RestGateway
상속: extends Omnipay\Common\Message\AbstractRequest
파일 보기 프로젝트 열기: omnipay/paypal

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

메소드 상세

createResponse() 보호된 메소드

protected createResponse ( $data, $statusCode )

getClientId() 공개 메소드

public getClientId ( )

getEndpoint() 보호된 메소드

protected getEndpoint ( )

getHttpMethod() 보호된 메소드

This is nearly always POST but can be over-ridden in sub classes.
protected getHttpMethod ( ) : string
리턴 string

getPayerId() 공개 메소드

public getPayerId ( )

getSecret() 공개 메소드

public getSecret ( )

getToken() 공개 메소드

public getToken ( )

sendData() 공개 메소드

public sendData ( $data )

setClientId() 공개 메소드

public setClientId ( $value )

setPayerId() 공개 메소드

public setPayerId ( $value )

setSecret() 공개 메소드

public setSecret ( $value )

setToken() 공개 메소드

public setToken ( $value )

toJSON() 공개 메소드

The PayPal REST API requires the use of JSON_UNESCAPED_SLASHES. Adapted from the official PayPal REST API PHP SDK. (https://github.com/paypal/PayPal-PHP-SDK/blob/master/lib/PayPal/Common/PayPalModel.php)
public toJSON ( $data, integer $options ) : string
$options integer http://php.net/manual/en/json.constants.php
리턴 string

프로퍼티 상세

$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.
protected $liveEndpoint

$payerId 보호되어 있는 프로퍼티

PayPal Payer ID
protected $payerId

$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.
protected $testEndpoint