VivaPayments / API

Index of Viva Wallet open source projects on GitHub.
139 stars 162 forks source link

Server Error at demo.vivapayments.com/selfcare/en/sales/mysales #1245

Closed Stratubas closed 4 years ago

Stratubas commented 4 years ago

Hello again.

I'm working on native checkout v2 with pre-auth.

My steps are the following:

1) Get an access token by posting at https://demo-accounts.vivapayments.com/connect/token

2) Get a charge token (and some html+js) by posting at https://demo-api.vivapayments.com/nativecheckout/v2/chargetokens

3) Render the html+js from step 2, which redirects me to https://demo.vivapayments.com/web/checkout/fakethreedsecurecardholderauthentication, where I click "Confirm payment".

4) Make a transaction (which responds with a "transactionId") by posting at https://demo-api.vivapayments.com/nativecheckout/v2/transactions, putting "preauth":true in the payload.

Then, at https://demo.vivapayments.com/selfcare/en/sales/mysales, I get the following error: viva-server-error.pdf

Are these steps OK? What's wrong?

matthewrgourd commented 4 years ago

Should normally be fine but the demo server can sometimes misbehave. Are you still experiencing the same issue or is it ok now?

Stratubas commented 4 years ago

Yes, the issue remains.

The page worked once now, because I didn't have any sales today. Searching for older sales popped up an "Error" message, and console logged "Failed to load resource: the server responded with a status of 500 ()".

After creating a new sale (with the same steps), the original "Server Error" is shown in https://demo.vivapayments.com/selfcare/en/sales/mysales

matthewrgourd commented 4 years ago

@Stratubas Step 4 should be made through a back-end channel, not a browser. Is this what you're doing?

Stratubas commented 4 years ago

@matthewrgourd I'm doing step 4 through a locally hosted node server.

matthewrgourd commented 4 years ago

Hi @Stratubas you said "the original "Server Error" is shown in https://demo.vivapayments.com/selfcare/en/sales/mysales". Can you attach a screenshot of this?

Stratubas commented 4 years ago

Hey @matthewrgourd . Here's your screenshot Screen Shot 2019-12-18 at 15 32 50

matthewrgourd commented 4 years ago

Hi there, this error occurs from time to time on the demo server. I believe you can simply refresh the page to remove the error. Please rest assured the production environment is a completely different story.

Stratubas commented 4 years ago

@matthewrgourd Refreshing the page does not remove the error. Even changing computer and OS does not remove the error. The error has been there for almost 20 days. Not exactly "from time to time" :) So how are we supposed to develop a new application? With our real credit cards in the production server?

matthewrgourd commented 4 years ago

Hi @Stratubas, sorry, I didn't realise that. I'll get them to reboot the demo server.

matthewrgourd commented 4 years ago

Hi @Stratubas, sorry for the delay, the demo server has been fixed now. Obviously any further issues don't hesitate to get back to us!

Stratubas commented 4 years ago

@matthewrgourd Ahh, nice. Finally I can see how "capture" works. Thanks.