PHP 클래스 PayPal\Api\VerifyWebhookSignature

Verify webhook signature.
상속: extends PayPal\Common\PayPalResourceModel
파일 보기 프로젝트 열기: paypal/rest-api-sdk-php 1 사용 예제들

공개 메소드들

메소드 설명
getAuthAlgo ( ) : string The algorithm that PayPal uses to generate the signature and that you can use to verify the signature. Extract this value from the PAYPAL-AUTH-ALGO response header, which is received with the webhook notification.
getCertUrl ( ) : string The X.509 public key certificate. Download the certificate from this URL and use it to verify the signature. Extract this value from the PAYPAL-CERT-URL response header, which is received with the webhook notification.
getTransmissionId ( ) : string The ID of the HTTP transmission. Contained in the PAYPAL-TRANSMISSION-ID header of the notification message.
getTransmissionSig ( ) : string The PayPal-generated asymmetric signature. Extract this value from the PAYPAL-TRANSMISSION-SIG response header, which is received with the webhook notification.
getTransmissionTime ( ) : string The date and time of the HTTP transmission. Contained in the PAYPAL-TRANSMISSION-TIME header of the notification message.
getWebhookEvent ( ) : WebhookEvent The webhook notification, which is the content of the HTTP POST request body.
getWebhookId ( ) : string The ID of the webhook as configured in your Developer Portal account.
post ( ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : VerifyWebhookSignatureResponse Verifies a webhook signature.
setAuthAlgo ( string $auth_algo ) The algorithm that PayPal uses to generate the signature and that you can use to verify the signature. Extract this value from the PAYPAL-AUTH-ALGO response header, which is received with the webhook notification.
setCertUrl ( string $cert_url ) The X.509 public key certificate. Download the certificate from this URL and use it to verify the signature. Extract this value from the PAYPAL-CERT-URL response header, which is received with the webhook notification.
setTransmissionId ( string $transmission_id ) The ID of the HTTP transmission. Contained in the PAYPAL-TRANSMISSION-ID header of the notification message.
setTransmissionSig ( string $transmission_sig ) The PayPal-generated asymmetric signature. Extract this value from the PAYPAL-TRANSMISSION-SIG response header, which is received with the webhook notification.
setTransmissionTime ( string $transmission_time ) The date and time of the HTTP transmission. Contained in the PAYPAL-TRANSMISSION-TIME header of the notification message.
setWebhookEvent ( WebhookEvent $webhook_event ) The webhook notification, which is the content of the HTTP POST request body.
setWebhookId ( string $webhook_id ) The ID of the webhook as configured in your Developer Portal account.

메소드 상세

getAuthAlgo() 공개 메소드

The algorithm that PayPal uses to generate the signature and that you can use to verify the signature. Extract this value from the PAYPAL-AUTH-ALGO response header, which is received with the webhook notification.
public getAuthAlgo ( ) : string
리턴 string

getCertUrl() 공개 메소드

The X.509 public key certificate. Download the certificate from this URL and use it to verify the signature. Extract this value from the PAYPAL-CERT-URL response header, which is received with the webhook notification.
public getCertUrl ( ) : string
리턴 string

getTransmissionId() 공개 메소드

The ID of the HTTP transmission. Contained in the PAYPAL-TRANSMISSION-ID header of the notification message.
public getTransmissionId ( ) : string
리턴 string

getTransmissionSig() 공개 메소드

The PayPal-generated asymmetric signature. Extract this value from the PAYPAL-TRANSMISSION-SIG response header, which is received with the webhook notification.
public getTransmissionSig ( ) : string
리턴 string

getTransmissionTime() 공개 메소드

The date and time of the HTTP transmission. Contained in the PAYPAL-TRANSMISSION-TIME header of the notification message.
public getTransmissionTime ( ) : string
리턴 string

getWebhookEvent() 공개 메소드

The webhook notification, which is the content of the HTTP POST request body.
public getWebhookEvent ( ) : WebhookEvent
리턴 WebhookEvent

getWebhookId() 공개 메소드

The ID of the webhook as configured in your Developer Portal account.
public getWebhookId ( ) : string
리턴 string

post() 공개 메소드

Verifies a webhook signature.
public post ( ApiContext $apiContext = null, PayPalRestCall $restCall = null ) : VerifyWebhookSignatureResponse
$apiContext PayPal\Rest\ApiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
$restCall PayPalRestCall is the Rest Call Service that is used to make rest calls
리턴 VerifyWebhookSignatureResponse

setAuthAlgo() 공개 메소드

The algorithm that PayPal uses to generate the signature and that you can use to verify the signature. Extract this value from the PAYPAL-AUTH-ALGO response header, which is received with the webhook notification.
public setAuthAlgo ( string $auth_algo )
$auth_algo string

setCertUrl() 공개 메소드

The X.509 public key certificate. Download the certificate from this URL and use it to verify the signature. Extract this value from the PAYPAL-CERT-URL response header, which is received with the webhook notification.
public setCertUrl ( string $cert_url )
$cert_url string

setTransmissionId() 공개 메소드

The ID of the HTTP transmission. Contained in the PAYPAL-TRANSMISSION-ID header of the notification message.
public setTransmissionId ( string $transmission_id )
$transmission_id string

setTransmissionSig() 공개 메소드

The PayPal-generated asymmetric signature. Extract this value from the PAYPAL-TRANSMISSION-SIG response header, which is received with the webhook notification.
public setTransmissionSig ( string $transmission_sig )
$transmission_sig string

setTransmissionTime() 공개 메소드

The date and time of the HTTP transmission. Contained in the PAYPAL-TRANSMISSION-TIME header of the notification message.
public setTransmissionTime ( string $transmission_time )
$transmission_time string

setWebhookEvent() 공개 메소드

The webhook notification, which is the content of the HTTP POST request body.
public setWebhookEvent ( WebhookEvent $webhook_event )
$webhook_event WebhookEvent

setWebhookId() 공개 메소드

The ID of the webhook as configured in your Developer Portal account.
public setWebhookId ( string $webhook_id )
$webhook_id string