Tap-Payments / goSell-JSLib-Documentation

19 stars 24 forks source link

Server Error in '/test_gosell/v2' Application. #14

Open Sweerna1 opened 3 years ago

Sweerna1 commented 3 years ago

The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /test_gosell/v2/payment/undefined

The browser path, https://sandbox.payments.tap.company/test_gosell/v2/payment/undefined?

I am getting this error while testing all payments types, after I fill in the card information and finish the transactions.

joeyrush commented 2 years ago

Same.

CleanShot 2022-10-20 at 21 10 58

Edit: The culprit of my particular error seemed to be related to my Vue integration - I was passing objects to the SDK that had reactivity behaviour attached to them (i.e. the data came from a component prop) which resulted in this error. I got lucky with this discovery as the error message as shown above is not very helpful at all

I solved it by creating new objects with the ... syntax, i.e:

goSell.config({
    transaction: { ...this.transaction },
    gateway: { ...this.gateway },
    ...
});