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
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -91,18 +91,18 @@ return [
91
91
92
92
Though there are multiple ways to pay an order, most payment gateways expect you to follow the following flow in your checkout process:
93
93
94
-
###1. The customer is redirected to the payment provider
94
+
###1. The customer is redirected to the payment provider
95
95
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.
96
96
97
-
The redirection is accomplished by submitting a form with some hidden fields. The form must post to the site of the payment provider. The hidden fields minimally specify the amount that must be paid, the order id and a hash.
97
+
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.
98
98
99
99
The hash is calculated using the hidden form fields and a non-public secret. The hash used by the payment provider to verify if the request is valid.
100
100
101
101
102
-
###2. The customer pays on the site of the payment provider
103
-
The customer arrived 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.
102
+
###2. The customer pays on the site of the payment provider
103
+
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.
104
104
105
-
###3. The customer gets redirected back
105
+
###3. The customer gets redirected back to your site
106
106
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.
107
107
108
108
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.
@@ -128,7 +128,7 @@ Note: Make sure you have `/payment/callback` registered in Paystack Dashboard [h
0 commit comments