cancel
Showing results for 
Search instead for 
Did you mean: 

PayPal\Api\Payment - getState()

Contributor

PayPal\Api\Payment - getState()

I have a question regarding states:

The API says the following:

getState( ) The state of the payment, authorization, or order transaction. The value is:

  • created: The transaction was successfully created.

  • approved: The buyer approved the transaction.

  • failed: The transaction request failed.

–––

What does approved actually mean ?

Is the money already on my PayPal account ?

Can it be canceled by the Payer after the status is approved (fraud) ?
–––

The question is now, is it safe to ship the product when the status is approved?

Is that enough or do I need to use a Webhook or IPN ?
–––

Here is an example response for my current sandbox setup:
https://gist.github.com/daslicht/795dceae24740d5ca3330cd2066c38bb

And then here:
https://gist.github.com/daslicht/795dceae24740d5ca3330cd2066c38bb#file-gistfile1-txt-L65
There is another state which says "completed"

~ Marc