I am unable to get the transactions id from paypal ExpressCheckout method.
$provider = new ExpressCheckout;
$response = $provider->getExpressCheckoutDetails($request->token);
echo "<pre>";print_r($response);
Array
(
[TOKEN] => EC-79454119W8713794B
[BILLINGAGREEMENTACCEPTEDSTATUS] => 1
[CHECKOUTSTATUS] => PaymentActionNotInitiated
[TIMESTAMP] => 2021-11-01T04:14:23Z
[CORRELATIONID] => f00ab9c2819b4
[ACK] => Success
[VERSION] => 123
[BUILD] => 55938276
[EMAIL] => john@abc.com
[PAYERID] => 238MG2US77AQY
[PAYERSTATUS] => unverified
[FIRSTNAME] => john
[LASTNAME] => doe
[COUNTRYCODE] => US
[ADDRESSSTATUS] => Confirmed
[CURRENCYCODE] => USD
[AMT] => 24.99
[ITEMAMT] => 24.99
[SHIPPINGAMT] => 0.00
[HANDLINGAMT] => 0.00
[TAXAMT] => 0.00
[DESC] => Order #61 Invoice
[INVNUM] => 61
[NOTIFYURL] => https://example.com/ipn/notify
[INSURANCEAMT] => 0.00
[SHIPDISCAMT] => 0.00
[INSURANCEOPTIONOFFERED] => false
[L_NAME0] => Monthly Unlimited
[L_QTY0] => 1
[L_TAXAMT0] => 0.00
[L_AMT0] => 24.99
[PAYMENTREQUEST_0_CURRENCYCODE] => USD
[PAYMENTREQUEST_0_AMT] => 24.99
[PAYMENTREQUEST_0_ITEMAMT] => 24.99
[PAYMENTREQUEST_0_SHIPPINGAMT] => 0.00
[PAYMENTREQUEST_0_HANDLINGAMT] => 0.00
[PAYMENTREQUEST_0_TAXAMT] => 0.00
[PAYMENTREQUEST_0_DESC] => Order #61 Invoice
[PAYMENTREQUEST_0_INVNUM] => 61
[PAYMENTREQUEST_0_NOTIFYURL] => https://example.com/ipn/notify
[PAYMENTREQUEST_0_INSURANCEAMT] => 0.00
[PAYMENTREQUEST_0_SHIPDISCAMT] => 0.00
[PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID] => abc@gmail.com
[PAYMENTREQUEST_0_INSURANCEOPTIONOFFERED] => false
[L_PAYMENTREQUEST_0_NAME0] => Monthly Unlimited
[L_PAYMENTREQUEST_0_QTY0] => 1
[L_PAYMENTREQUEST_0_TAXAMT0] => 0.00
[L_PAYMENTREQUEST_0_AMT0] => 24.99
[PAYMENTREQUESTINFO_0_ERRORCODE] => 0
)
I need transaction id for making refund. that's why I need transaction id. This is the function I am trying for refund
$response = $provider->refundTransaction($transactionid);
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Y8jjPW
via IFTTT
Aucun commentaire:
Enregistrer un commentaire