Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CompletePurchaseResponse #5

Open
yagogak opened this issue Feb 3, 2018 · 1 comment
Open

CompletePurchaseResponse #5

yagogak opened this issue Feb 3, 2018 · 1 comment

Comments

@yagogak
Copy link

yagogak commented Feb 3, 2018

Hi Ambroise,

In complete purchase response your getTransactionId should get the authorisationId field, there is no orderId key in the returned array

  /**
    * Get the transaction ID as generated by the merchant website.
    *
    * @return string
    */
   public function getTransactionId()
   {
       return $this->fields['authorisationId'];
   }
@ambroisemaupate
Copy link
Owner

ambroisemaupate commented Feb 6, 2018

Hi @yagogak

transactionId is meant for your website database. See transactionId vs transactionReference section on https://omnipay.thephpleague.com/gateways/build-your-own/

So I chose to map it in the PurchaseRequest as orderId. Then Sips gateway should give it back to you during CompletePurchaseRequest under the same name.

Do not confuse it with transactionReference which is the Sips generated transaction number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants