Help for this page

Select Code to Download


  1. or download this
        my $results = `curl https://$config->{$config->{mode}}->{transacti
    +on_endpoint}/v1/payments/payment/$_[0] -H "Content-Type: application/
    +json; charset=utf-8" -H "Authorization: Bearer $token"`;
        #my $json_vals = decode_json($results); # also tried just this
        my $json_vals = JSON->new->utf8->decode($results);
    
  2. or download this
    curl -v https://api.sandbox.paypal.com/v1/payments/payment/PAY-6KY1964
    +6FF321593HLCVRQSY -H "Content-Type: application/json; charset=utf-8" 
    +-H "Authorization: Bearer MY_AUTH_TOKEN"
    * Hostname was NOT found in DNS cache
    *   Trying 173.0.82.78...
    ...
    * SSLv2, Unknown (21):
    * SSLv3, TLS alert, Client hello (1):
    ","reason_code":"RECEIVING_PREFERENCE_MANDATES_MANUAL_ACTION","protect
    +ion_eligibility":"INELIGIBLE","parent_payment":"PAY-6KY19646FF321593H
    +LCVRQSY","create_time":"2017-02-20T16:25:19Z","update_time":"2017-02-
    +20T16:25:36Z","links":[{"href":"https://api.sandbox.paypal.com/v1/pay
    +ments/sale/5EH65998225152523","rel":"self","method":"GET"},{"href":"h
    +ttps://api.sandbox.paypal.com/v1/payments/sale/5EH65998225152523/refu
    +nd","rel":"refund","method":"POST"},{"href":"https://api.sandbox.payp
    +al.com/v1/payments/payment/PAY-6KY19646FF321593HLCVRQSY","rel":"paren
    +t_payment","method":"GET"}],"soft_descriptor":"PAYPAL *TESTFACILIT"}}
    +]}],"create_time":"2017-02-20T16:25:19Z","update_time":"2017-02-20T16
    +:25:36Z","links":[{"href":"https://api.sandbox.paypal.com/v1/payments
    +/payment/PAY-6KY19646FF321593HLCVRQSY","rel":"self","method":"GET"}]
    
  3. or download this
    SV = PV(0x1143890) at 0x11e5758
      REFCNT = 1
      FLAGS = (POK,pPOK,UTF8)
      PV = 0x11a47c0 "Andy\303\255\303\255\303\255\303\255\303\251\303\251
    +\303\251 \303\215\303\263\303\251 "\0 [UTF8 "Andy\x{ed}\x{ed}\x{ed}\x
    +{ed}\x{e9}\x{e9}\x{e9} \x{cd}\x{f3}\x{e9} "]
      CUR = 26
      LEN = 28