Coder Social home page Coder Social logo

Comments (20)

dpnevmatikos avatar dpnevmatikos commented on July 30, 2024

Hi there @emanoyhl
From what I understand you are trying to use the "Pay with Viva Wallet" payment method.
Did you follow the steps listed here ?
If you did then are there any errors logged in the browser's console?

from api.

emanoyhl avatar emanoyhl commented on July 30, 2024

yes i have

the only error i get is "VivaPayments: Required data-vp attribute "publickey" was not found or is empty"
i do not want to use native checkout as i rather the info go to the button, and the customer checkout on viva site...

apparently the public key is for native checkout...
i have also checked to use native checkout on the viva profile, so i have a key and have it in the code... but is not reading it...

it's as if is not submitting the publickey in POST...

from api.

dpnevmatikos avatar dpnevmatikos commented on July 30, 2024

Hi @emanoyhl
From what you're saying it seems that you are missing the data-vp-publickey attribute from the button's rendering code. The public key is required both for Native checkout and Pay with Viva Wallet checkout.
Please take a look at the first step required for rendering a "Pay With Viva Wallet" correctly.

from api.

emanoyhl avatar emanoyhl commented on July 30, 2024

yes i have done all the steps correctly ... i believe i found the problem of not passing the public key - now i am having this issue:
VivaPayments: Invalid data-vp-lang value - i have tried with el-GR and also leave it empty returns same error...

from api.

dpnevmatikos avatar dpnevmatikos commented on July 30, 2024

You need to use either 'el' for Greek or 'en' for US-English. Please have a look here.

from api.

emanoyhl avatar emanoyhl commented on July 30, 2024

now i receive these errors:
[Error] Unable to post message to http://demo.vivapayments.com. Recipient has origin http://www.MYSITENAME.gr.

postMessage
nt (js:1:5942)
(anonymous function) (js:1:6774)

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (btn_el.png, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (simplecheckout, line 0)

from api.

emanoyhl avatar emanoyhl commented on July 30, 2024

http://demo.vivapayments.com/api/orders/web/checkout/simplecheckout?publickey=MYKEYISHERE&amount=0.00&lang=el&baseurl=http%3A%2F%2Fdemo.vivapayments.com%2Fapi%2Forders&description=MYSITEDESCRIPTION

http://demo.vivapayments.com/api/orders/web/content/images/simplecheckout/btn_el.png

both those return 404 not found...

from api.

dpnevmatikos avatar dpnevmatikos commented on July 30, 2024

Try using demo.vivapayments.com as the base URL instead of demo.vivapayments.com/api/orders.

from api.

emanoyhl avatar emanoyhl commented on July 30, 2024

i have - and i still get this:
[Error] Unable to post message to http://demo.vivapayments.com. Recipient has origin http://www.MYSITE.gr.

postMessage
nt (js:1:5942)
(anonymous function) (js:1:6774)

[Error] Failed to load resource: the server responded with a status of 403 (Invalid merchant public key) (simplecheckout, line 0)

http://demo.vivapayments.com/web/checkout/simplecheckout?publickey=MYPUBLICKEY&amount=0.00&lang=el&baseurl=http%3A%2F%2Fdemo.vivapayments.com%2F&description=MYDESCRIPTION

from api.

emanoyhl avatar emanoyhl commented on July 30, 2024

i double checked my public key and is correct - and the error shows the key as correct.... (of course i replaced with "MYPUBLICKEY" to not reveal on this forum)

what could be the problem?

from api.

emanoyhl avatar emanoyhl commented on July 30, 2024

it's as if the public key is being html escaped - in my public key i have the / and = characters.... in the error where it shows the code it shows the escaped '%252F' and '%253D' respectively....

https://demo.vivapayments.com/web/checkout/simplecheckout?publickey=MYPUBLIC%252FKEY%253DSEETHEESCAPEDCHARACTERS&amount=0.00&lang=el&baseurl=https%3A%2F%2Fdemo.vivapayments.com%2F&description=MYDESCRIPTION&merchantref=Array
Failed to load resource: the server responded with a status of 403 (Invalid merchant public key)

from api.

dpnevmatikos avatar dpnevmatikos commented on July 30, 2024

Failed to load resource: the server responded with a status of 403 (Invalid merchant public key)

This clearly indicates that you are using a wrong public key. Please note that the key you use in the demo environment is not the same with the one used for production.
Did you get your demo key by logging into demo.vivapayments.com?

from api.

emanoyhl avatar emanoyhl commented on July 30, 2024

yes - i have

i'm using everything on the demo account setup with the public key, merchant id, api key, etc...

from api.

emanoyhl avatar emanoyhl commented on July 30, 2024

any news?

still having problems here...

from api.

emanoyhl avatar emanoyhl commented on July 30, 2024

seriously does viva wallet even want people to use their service to receive any type of payments since most of us cannot set it up properly because either 1. your example code are useless and incomplete, or 2. the support is very very lacking....

again, any help on this?? or should i look elsewhere for a payment system?

thanks

from api.

dmihos avatar dmihos commented on July 30, 2024

Hi emanoyhl

The samples provided here at GH are working, verified, usable samples.
We're doing our best to provide support, thanks for understanding.

There's clearly something wrong with your implementation.
I can only advise you send an email to [email protected] with your sample, containing public key, for further investigation.
Please don't forget to mention this Github issue for reference.

Thank you

from api.

emanoyhl avatar emanoyhl commented on July 30, 2024

i understand is frustrating when there is no immediate response, not just from admins here but from other users who may be experiencing same issues - regardless i have resolved the invalid key and have gotten all the way to the viva wallet payment section - i add the fake card values of 4111 1111 1111 1111 etc, and i click to submit and it will not - with this new error:

Failed to load resource: the server responded with a status of 500 (Internal Server Error) https://demo.vivapayments.com/web/checkout/getpaymenttoken

"The required anti-forgery cookie "__RequestVerificationToken_L1dlYg2" is not present."

from api.

emanoyhl avatar emanoyhl commented on July 30, 2024

Server Error in '/Web' Application.

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: /web/checkout/getpaymenttoken

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1069.1

is problem from your site??

from api.

dmihos avatar dmihos commented on July 30, 2024

Yes Emanouhl, you're getting 404 for a non existing Viva Payments url.
Our sample code does not produce such a url, so there's something wrong with your implementation.
Have you sent us a sample of your code to the email address I mentioned earlier?

from api.

emanoyhl avatar emanoyhl commented on July 30, 2024

that url is produced when i click the vivawallet button after inputting the 4111 1111 1111 1111 cc to submit payment.... so it must be coming from somewhere.... is definitely not in the code - no i haven't submitted it yet, but will do so soon.... thanks in advance

from api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.