new appraoch

This commit is contained in:
Tim Bendt
2025-11-26 13:22:58 -05:00
parent de3d100844
commit c520b7df89
6760 changed files with 1009780 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
/**
* PayPal REST Void an authorization
*/
namespace Omnipay\PayPal\Message;
/**
* PayPal REST Void an authorization
*
* Use this call to void a previously authorized payment.
* Note: A fully captured authorization cannot be voided.
*
* @link https://developer.paypal.com/docs/api/#void-an-authorization
* @see RestAuthorizeRequest
*/
class RestVoidRequest extends AbstractRestRequest
{
public function getData()
{
$this->validate('transactionReference');
}
public function getEndpoint()
{
return parent::getEndpoint() . '/payments/authorization/' . $this->getTransactionReference() . '/void';
}
}