paypal express - DoExpressCheckoutPayment response with PaymentStatus None -


in live environment seeing responses doexpresscheckoutpayment paymentstatus none/null. response has ack set success imply valid payment (combined paymentstatus of completed), these payments declined. using paypal nuget packages under asp.net.

my question none/null imply need execute api call in order actual status? call doexpresscheckoutpayment again or call gettransactiondetails? if status cannot determined within checkout pipeline need reject payment.

your payment status should not null should completed or pending. other status means payment did not complete or there error. 1 way make transaction completed send gettransactiondetails api call or transactionsearch api call.

from paypal developer site here transaction search:
how transaction search

request  ------- endpoint url: https://api-3t.sandbox.paypal.com/nvp http method: post post data: user=merchant_user_name &pwd=merchant_password &signature=merchant_signature &method=transactionsearch &startdate=2012-01-01t05:38:48z    #start date of time range   search &enddate=2012-01-31t05:38:48z     #end date of time range search &version=94  response -------- l_timestamp0=2012%2d01%2d11t06%3a39%3a13z ... &l_timezone0=gmt ... &l_type0=payment ... &l_email0=test_user%40x%2ecom ... &l_name0=testname%20q ... &l_transactionid0=9xj88717e86951234 ... &l_status0=completed ... &l_amt0=0%2e11 ... &l_currencycode0=usd ... &l_feeamt0=0%2e00 ... &l_netamt0=0%2e11 ... &timestamp=2012%2d10%2d01t17%3a55%3a54z &ack=success ... 

Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -