Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hosted payment examples #1

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

kevinvavelin
Copy link

No description provided.

@kevinvavelin
Copy link
Author

Here is the first draft of how to build a single payment using the hosted form with asp.net core. I just did some basic stuff. Let me know if there is any improvement to this structure or code

Copy link
Contributor

@GIMALima GIMALima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have reviewed your pull request. The following changes are required for us to accept your pull requests:

  1. "Create a multiple payment form" does not work. Please implement this feature.
  2. "Create an authorization only form" does not work. Please implement this feature or delete this section.
  3. Rename and reorder the configuration parameters as follow: Shop ID, Key (TEST or PRODUCTION), Payment page URL, Amount.
  4. On the intermediate page displayed before the redirection to the payment page "Try it out now ! Make a payment", please display the payment form.
  5. Add the Instant Payment Notification and client return management.
    5.1. The IPN management: At the end of the payment, our payment gateway sends some parameters by POST mode to the server URL which analyzes the payment results. First you have to check the signature. If it is correct then you will be able to take the payment result into consideration.
    5.2. When the buyer returns to the shop through the return URLs or the "Cancel and return" button, the payment parameters are sent back depending on the vads_return_mode setting (POST or GET). The return URL must be sent in the payment form.

You must add a return page that controls the signature and analyzes the payment results and displayed it to the user. First, the controller checks the signature and then analyzes the main fields.

please refer to our documentation for the implementation guide: https://sogecommerce.societegenerale.eu/doc/fr-FR/form-payment/quick-start-guide/sitemap.html

Thank you for your pull request.

@kevinvavelin
Copy link
Author

Ok so if I understand it well, any examples needs to be like php or Java examples available.

The purpose was to make it more real for users so they can rely on a pure code they can just copy paste and use it. To bring more users to the solution.

I'll make the change then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants