Comments (4)
Καλησπέρα
Για τα επι μέρους ερωτήματά σας
- Όχι, το redirect στο success url γίνεται μόνο σε περίπτωση πετυχημένης χρέωσης
- Error 400 σημαίνει ότι κάποια παράμετρος(παράμετροι) στο request που στέλνετε είναι λάθος. Πχ missing OrderCode, invalid types κλπ
- Παρότι οι γνώσεις μας σε asp/vb είναι περιορισμένες, νομίζω η function που ψάχνετε για cast σε Long (το OrderCode είναι typed Long) είναι η CLng
from api.
Καλησπέρα
Ευχαριστώ για το 1) Αυτό σημαίνει ότι δεν χρειάζεται να κάνουμε επιπλέον έλεγχο GetTransactions call
-
το CLng παράγει Overflow: 'CLng' The CLng function converts an expression to type Long
The value must be a number between -2147483648 and 2147483647
Όπως αναφέρω παραπάνω οι μόνες εντολές είναι CDbl(OrderCode) αλλά αλλάζει το 8243103019172607 σε 8.24310301917261E+15 -
Έκανα και δοκιμές σύμφωνα με το
https://github.com/VivaPayments/API/wiki/GetTransactions
σε date=2012-12-24 ?clearancedate=2012-12-24 κλπ
GET /api/transactions/b1a3067c-321b-4ec6-bc9d-1778aef2a19d
GET /api/transactions/?ordercode=175936509216
GET /api/transactions/?date=2012-12-24
GET /api/transactions/?clearancedate=2012-12-24
με το ίδιο αποτέλεσμα λάθους
{"Transactions":[],"ErrorCode":400,"ErrorText":"Empty options","TimeStamp":"2016-02-10T10:49:03.228726+02:00"}
-
Μπορείτε να κοιτάξετε και να με ενημερώσετε τι ακριβώς ελέγχει η κλήση σε /api/transactions/?
-
Έχετε κάποιο παράδειγμα χρήσης GetTransactions call σε οποιαδήποτε γλώσσα ?. Δεν υπάρχει τίποτε στο github στα παραδείγματα που έχετε. Μήπως θα ήταν καλό να ανεβάσετε ένα τέτοιο παράδειγμα που να δουλεύει.
Ευχαριστώ
from api.
baseUrl = "http://demo.vivapayments.com/api/transactions/"
dim MerchantId
MerchantId = "XXXXXXXXXXXXXXXXXXXXXXX"
dim ApiKey
ApiKey = "yyyyy"
Set http = Server.CreateObject("Msxml2.ServerXMLHTTP.3.0")
http.open "GET", baseUrl & "?OrderCode=8243103019172607", False
http.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
http.setRequestHeader "Authorization", "Basic "&Base64Encode(MerchantId & ":" & ApiKey)
http.send()
response.write http.responsetext
Θα πρέπει να βάλετε τα στοιχεία του προφίλ σας.
Η κλήση στη GetTransactions καλό θα είναι να γίνεται πάντα, ακόμα και στην περίπτωση του redirect στο success url σας, για λόγους ασφαλείας.
from api.
Καλημέρα
Σας ευχαριστώ πολύ για την πληροφορία. Τώρα δουλεύει η λειτουργία και σε μένα. Θα μπορούσατε να το ανεβάσετε στα παράδειγμα στο github.com και σίγουρα θα βοηθήσει και σε άλλους που θα έχουν το ίδιο πρόβλημα.
Ευχαριστώ
from api.
Related Issues (20)
- Viva Wallet Standar checkout Woocommerce - Compatibillity Issue with woocommerce 8.5.2 HOT 4
- e-banking/DIAS DEMO environment HOT 3
- Account Verification Status Changed webhook not listed in interface HOT 2
- Typo in code HOT 2
- Marketplace Demo - Orders successful but not processed HOT 1
- Inconsistency in statuses HOT 2
- Integration Question (Payment's timeouting) HOT 4
- order accepted without payment HOT 3
- AISP PSD2 Interface plans HOT 3
- Cannot Reset module vivawalletsmartcheckout HOT 3
- Prestashop 8.1.3 bug when landing on the module page(it resets all the data) HOT 5
- demo.vivapayments.com login not working
- Uniqueness and life cycle of OrderCode HOT 5
- Checkout page in testing mode not working ? HOT 8
- Authentication issue for ISV Basic Auth HOT 5
- handle-payments-with-card-installments with extra amount HOT 7
- Update Card for Recurring Payments HOT 3
- [Feature Request] Add Microsoft Kiota API Search support and upgrade to OpenAPI 3 HOT 3
- [Feature Request|Idea] Unify the Cloud and Local Peer-to-Peer API HOT 2
- Cloud Terminal API problem HOT 10
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.