I'm working on PayPal integration (Express Checkout) using SOAP API. After DoExpressCheckout call I call GetExpressCheckoutDetails. In docs I found that the checkout status can be one of the following
- PaymentActionNotInitiated
- PaymentActionFailed
- PaymentActionInProgress
- PaymentCompleted
But docs do not actually say what does each of them mean. I understand all but PaymentActionInProgress - how do I handle it? Does it mean that I'll receive IPN call from PayPal when it's completed? Also, can I simulate this response for testing?
Hello Alex Buynyachenko,
A value of PaymentActionNotInitiated occurs when you submit a GetExpressCheckoutDetails API call before the buyer logs into a PayPal account or when they log into their account, return to your website but have not completed the payment yet.
PaymentActionFailed occurs when you've tried to complete the payment but it failed for some reason. The error response information returned would have details on the failure.
PaymentActionInProgress this is returned when you submit the DoExpressCheckoutPayment API call but haven't received a response yet - you shouldn't encounter that one often.
PaymentCompleted is returned after you get a successful DoExpressCheckoutPayment response. I just tested submitting an Authorization to see if I would get "InProgress" or "Completed" and I received a "Completed" value back.