Coder Social home page Coder Social logo

Δεν γίνεται το redirect πίσω στο site, παρόλο που η πηγή πληρωμών είναι οκ! about api HOT 5 CLOSED

vivapayments avatar vivapayments commented on July 30, 2024
Δεν γίνεται το redirect πίσω στο site, παρόλο που η πηγή πληρωμών είναι οκ!

from api.

Comments (5)

dmihos avatar dmihos commented on July 30, 2024

Καλησπέρα bluemyria

Κοιτώντας το λογαριασμό σας, βλέπουμε κάποιες συναλλαγές που έγιναν στο source Default, το οποίο δεν έχει το url dev2.xorafaki.gr.
Θα πρέπει, κατά τη δημιουργία του Order, να περνάτε το SourceCode της εκάστοτε πηγής που θέλετε να χρησιμοποιήσετε
https://github.com/VivaPayments/API/wiki/CreateOrder
https://github.com/VivaPayments/API/wiki/Optional-Parameters (property SourceCode)

from api.

bluemyria avatar bluemyria commented on July 30, 2024

Καλησπέρα,

ευχαριστώ για την απάντηση. Επειδή το documentation είναι κάπως αόριστο
(SourceCode ( string ): Sources can be created and managed from the merchant's profile. A source is used for grouping and filtering transactions (ie a merchant may have more than one websites, or different product categories).) υπέθεσα αφού ανέλυσα και το παράδειγμα εδώ: https://github.com/VivaPayments/API/blob/master/CreateOrder/PHP/create_order.php
ότι πρέπει στα $postargs να προσθέσω ένα &SourceCode='xxxxxxxx'; Στο παράδειγμά σας το 'xxxxxxxx' είναι 'Default'. Στην περίπτωση μας υπέθεσα ότι το string που χρειάζεται είναι ο τετραψήφιος αριθμός στη στήλη 'Κωδικός' των Payment Sources. δηλ '1234'

Καταλαβαίνω ότι για σας είναι προφανές αφού δουλεύετε με τον κώδικα κάθε μέρα. Για μας που χρειάζεται να κάνουμε μια φορά setup δεν είναι. Λίγο πιο καλό documentation (με μερικά παραδείγματα) βρε παιδιά θα βοήθαγε όλους! το γράφω εδώ γιατί μπορεί να το χρειαστεί και κανείς άλλος (ίσως και εγώ στο επόμενο project)

Και πάλι ευχαριστώ για την απάντηση

from api.

dmihos avatar dmihos commented on July 30, 2024

Καλησπέρα bluemyria

Στον οδηγό του Redirect Checkout, στο section 3, αναφέρεται η σχέση του Source με τα Redirect urls

Upon completion of the checkout form, the customer is redirected back to your website. The redirection URLs are defined in your vivapayments.com account under the Sources section.

Note that the redirection always happens at the 'Source' level. If you have defined multiple sources on your profile, you need to use the optional parameter 'SourceCode' when creating the order, so that the system selects the appropriate redirection url.

Ωστόσο, σημειώνουμε το σχόλιό σας ότι δεν είναι αρκετά σαφές.

from api.

bluemyria avatar bluemyria commented on July 30, 2024

ναι αλλά πώς θα είναι ακριβώς αυτή η παράμετρος SourceCode δεν είναι προφανές, χρειάζεται ψάξιμο! αυτό σας λέω! Βάλτε ένα παράδειγμα με ένα screenshot για να καταλάβουν και οι πελάτες σας ότι πρέπει να βρούν το περιεχόμενο της στήλης "κωδικός" του payment source από το https://members.vivawallet.com/selfcare/el-gr/sources/paymentsources για να τον βάλουν σαν string. Ελπίζω τώρα να έγινε σαφές τι εννοώ

from api.

bluemyria avatar bluemyria commented on July 30, 2024

Πάντως θα ήθελα να ευχαριστήσω για την άμεση ανταπόκριση, βγήκαμε live και όλα είναι μια χαρά με τη σύνδεση στη viva!

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.