You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ return [
100
100
Though there are multiple ways to pay an order, most payment gateways expect you to follow the following flow in your checkout process:
101
101
102
102
### 1. The customer is redirected to the payment provider
103
-
After the customer has gone through the checkout process and is ready to pay, the customer must be redirected to site of the payment provider.
103
+
After the customer has gone through the checkout process and is ready to pay, the customer must be redirected to the site of the payment provider.
104
104
105
105
The redirection is accomplished by submitting a form with some hidden fields. The form must send a POST request to the site of the payment provider. The hidden fields minimally specify the amount that must be paid, the order id and a hash.
106
106
@@ -111,7 +111,7 @@ The hash is calculated using the hidden form fields and a non-public secret. The
111
111
The customer arrives on the site of the payment provider and gets to choose a payment method. All steps necessary to pay the order are taken care of by the payment provider.
112
112
113
113
### 3. The customer gets redirected back to your site
114
-
After having paid the order the customer is redirected back. In the redirection request to the shop-site some values are returned. The values are usually the order id, a paymentresult and a hash.
114
+
After having paid the order the customer is redirected back. In the redirection request to the shop-site some values are returned. The values are usually the order id, a payment result and a hash.
115
115
116
116
The hash is calculated out of some of the fields returned and a secret non-public value. This hash is used to verify if the request is valid and comes from the payment provider. It is paramount that this hash is thoroughly checked.
0 commit comments