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
* Create checkout payload as described in https://aplazame.com/en/docs/api/checkout-parameters/
35
+
* Create checkout payload as described in https://aplazame.com/integraciones/api/checkout-creation/
36
36
*
37
37
* @return object
38
38
*/
@@ -41,11 +41,12 @@ function createCheckoutPayload() {
41
41
* Merchant model
42
42
*/
43
43
$merchant = newstdClass();
44
-
$merchant->notification_url = '/step3_checkout_confirm.php'; // url where you will receive Aplazame webhook events as described in https://aplazame.com/en/docs/api/confirm-api/#implement-the-confirmation-endpoint
45
-
$merchant->cancel_url = '/cancel'; // url that the customer is sent to if there is an error in the checkout.
46
-
$merchant->success_url = '/success'; // url that the customer is sent to after confirming their order.
47
-
$merchant->checkout_url = '/checkout'; // url that the customer is sent to if the customer chooses to back to the e-commerce, by default is /.
48
-
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->success_url = "/success"; // url that the customer is sent to after confirming their order.
46
+
$merchant->pending_url = "/pending"; // url that the customer is sent to if the order status is pending.
47
+
$merchant->error_url = "/error"; // url that the customer is sent to if there is an error in the checkout.
48
+
$merchant->dismiss_url = "/checkout"; // url that the customer is sent to if the customer chooses to back to the e-commerce, by default is /.
49
+
$merchant->ko_url = "/ko"; // url that the customer is sent to if Aplazame refuses the order.
49
50
50
51
/*
51
52
* Article model
@@ -68,7 +69,6 @@ function createCheckoutPayload() {
68
69
*/
69
70
$articles = array( $article, );
70
71
71
-
72
72
/*
73
73
* Order model
74
74
*/
@@ -111,7 +111,6 @@ function createCheckoutPayload() {
111
111
$customer->last_login = Aplazame\Serializer\Date::fromDateTime(newDateTime('2020-08-27 19:57:56')); // A datetime of the customer last login.
0 commit comments