Skip to content

Instantly share code, notes, and snippets.

@arichazan
arichazan / getTrasactionDetailsResponse.txt
Last active October 2, 2015 15:57
get transaction details response.
$PmTransactionDetails =
(
[ADDRESSOWNER] => PayPal
[ADDRESSSTATUS] => None
[TIMESTAMP] => 2015%2d10%2d02T15%3a45%3a06Z
[CORRELATIONID] => 57cf422dcb0c9
[ACK] => Failure
[VERSION] => 93
[BUILD] => 000000
[L_ERRORCODE0] => 10007
@arichazan
arichazan / gist:7adfb3e3afe669f2ef19
Created October 2, 2015 13:58
Get Express Checkout Details
[TOKEN] => EC%2d5W759829EK6932643
[BILLINGAGREEMENTACCEPTEDSTATUS] => 0
[CHECKOUTSTATUS] => PaymentActionCompleted
[TIMESTAMP] => 2015%2d10%2d02T13%3a39%3a58Z
[CORRELATIONID] => 7a42d93ff408b
[ACK] => Success
[VERSION] => 93
[BUILD] => 000000
[EMAIL] => ari%2bpaypalBuyer%40vreasy%2ecom
[PAYERID] => 2GWBFRVNH5HPU
@arichazan
arichazan / gist:11b579c873e4a043c88d
Last active September 8, 2015 10:25
doesPaymentMatchOptions
/*
* tests whether payment matches options
*
* returns 'true' if matches, 'false' otherwise
*
* $opts is an array of options to filter the payments by
* possible values are
* 'withoutPrefix' => 'prefix' - only select payment without this prefix
* 'withPrefix' => 'prefix' - only select payment with this prefix
* if no options are provided, always returns 'true'