paypal - INVALID_RESOURCE_ID when Authorization.Capture is called on an authorized payment using sandbox account -
i using paypal.1.6.0\lib\net45\paypal.dll
i created payment authorize
intent , have authorized authid
(payment.cart
) , paypal.api.payment.id
.
when try call authorization.capture(apicontext, capture)
authid
, get
{ "name":"invalid_resource_id", "message":"the requested resource id not found", "information_link":"https://developer.paypal.com/webapps/developer/docs/api/#invalid_resource_id", "debug_id":"d73f6a0c1b8bc" }
i tested using sandbox account.
trying link gets me 'page not found error'. clues?
i realized looking @ wrong 'authorization code'. not ((payment)executedpayment).cart posted in original question ((payment)executedpayment).transactions.firstordefault().authorization.id
i able use correct authcode , able capture authorization. executedpayment return value payment.execute method.
Comments
Post a Comment