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: examples/step1_checkout_create.php
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,8 @@
3
3
/*
4
4
* This file provides an example about how to complete the step 01 of Aplazame's
5
5
* integration as described in:
6
-
* https://aplazame.com/integraciones/api/
6
+
* - https://aplazame.com/en/docs/api/
7
+
* - https://aplazame.com/integraciones/api/
7
8
*
8
9
* It contains three steps:
9
10
*
@@ -32,7 +33,7 @@
32
33
33
34
34
35
/**
35
-
* Create checkout payload as described in https://aplazame.com/integraciones/api/checkout-creation/
36
+
* Create checkout payload as described in https://aplazame.com/en/docs/api/checkout-creation/ or https://aplazame.com/integraciones/api/checkout-creation/
36
37
*
37
38
* @return object
38
39
*/
@@ -41,7 +42,7 @@ function createCheckoutPayload() {
41
42
* Merchant model
42
43
*/
43
44
$merchant = newstdClass();
44
-
$merchant->notification_url = 'https://merchant.com/order/step3_checkout_confirm.php'; // url where you will receive Aplazame webhook events as described in https://aplazame.com/integraciones/api/checkout-confirmation/
45
+
$merchant->notification_url = 'https://merchant.com/order/step3_checkout_confirm.php'; // url where you will receive Aplazame webhook events as described in https://aplazame.com/en/docs/api/checkout-confirmation/ or https://aplazame.com/integraciones/api/checkout-confirmation/
45
46
$merchant->success_url = "/success"; // url that the customer is sent to after confirming their order.
46
47
$merchant->pending_url = "/pending"; // url that the customer is sent to if the order status is pending.
47
48
$merchant->error_url = "/error"; // url that the customer is sent to if there is an error in the checkout.
@@ -161,7 +162,7 @@ function createCheckoutPayload() {
161
162
* Send the checkout payload generated by createCheckoutPayload to Aplazame and returns the Aplazame Checkout ID
162
163
*
163
164
* @param \Aplazame\Api\Client $aplazameApiClient A configured client with the api key and environment
164
-
* @param array|object $payload Checkout Parameters as described in https://aplazame.com/integraciones/api/checkout-creation/
165
+
* @param array|object $payload Checkout Parameters as described in https://aplazame.com/en/docs/api/checkout-creation/ or https://aplazame.com/integraciones/api/checkout-creation/
Copy file name to clipboardExpand all lines: examples/step3_checkout_confirm.php
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,8 @@
2
2
3
3
/*
4
4
* This file provides an example about how to complete the step 03 of Aplazame's integration as described in:
5
-
* https://aplazame.com/integraciones/api/
5
+
* - https://aplazame.com/en/docs/api/
6
+
* - https://aplazame.com/integraciones/api/
6
7
*
7
8
* This file is split in two main sections:
8
9
*
@@ -102,7 +103,7 @@ function setOrderPaymentStatusAsPending($order_id)
102
103
}
103
104
104
105
/*
105
-
* This section is a more specific Aplazame flow as described in https://aplazame.com/integraciones/api/checkout-confirmation/
106
+
* This section is a more specific Aplazame flow as described in https://aplazame.com/en/docs/api/checkout-confirmation/ or https://aplazame.com/integraciones/api/checkout-confirmation/
106
107
*
107
108
* Feel free to adjust to the specific requirements of your checkout process. The following snippet is provided as a quick start.
0 commit comments