Comments (20)
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.
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.
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.
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.
You need to use either 'el' for Greek or 'en' for US-English. Please have a look here.
from api.
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.
http://demo.vivapayments.com/api/orders/web/content/images/simplecheckout/btn_el.png
both those return 404 not found...
from api.
Try using demo.vivapayments.com
as the base URL instead of demo.vivapayments.com/api/orders
.
from api.
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)
from api.
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.
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.
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.
yes - i have
i'm using everything on the demo account setup with the public key, merchant id, api key, etc...
from api.
any news?
still having problems here...
from api.
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.
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.
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.
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.
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.
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)
- Magento 2.3 Module HOT 2
- API Documentation missing responses HOT 1
- REFUND_SERVER_ERROR (-23) when refunding a payment through Android HOT 2
- Pass Unlock PIN through Android Intent for Refund HOT 1
- No Multiple Source Code HOT 2
- No webhook delivery! HOT 3
- Retrive list of transactions HOT 3
- Whitelist the Viva addresses (not updated) HOT 1
- Vivawallet smart checkout plugin hasn't been tested with the last 3 major wordpress versions HOT 2
- Payment gateway not working on Woocommerce Version 9.0.1 HOT 10
- Woocommerce thank you page is showing not found HOT 3
- Viva Wallet public key HOT 4
- Ροή διασύνδεσης cloud erp με viva.com terminal HOT 2
- Nem sempre funciona a comuninção de sucesso da transação HOT 4
- POST to /connect/token throw 403 HOT 3
- Woocommerce plugin / Cancel payment shows as Pending payment order HOT 2
- Bad Request (400) - Authentication Authorization Amount Discrepancy HOT 2
- Viva smart checkout slow with errors HOT 4
- Transactions with Counterpart = null and UserDescription = null HOT 12
- Smarty error in 1.6 versions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api.