Skip to content

Commit 1f2215e

Browse files
chore: [sc-90097] [Plugins] Eliminar endpoint de customer history en plugins PHP (#41)
* feat: added Jenkinsfile * Fix deprecation. Co-authored-by: josevictorsanchez <[email protected]>
1 parent ec9456e commit 1f2215e

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

jenkins/php.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spec:
88
fsGroup: 1000
99
containers:
1010
- name: php
11-
image: 666356151544.dkr.ecr.eu-central-1.amazonaws.com/tools/php:7.3.9
11+
image: 666356151544.dkr.ecr.eu-central-1.amazonaws.com/thirdparty/php:7.3.9_v7
1212
imagePullPolicy: Always
1313
command:
1414
- cat

plugin/lib/Aplazame/Aplazame/BusinessModel/Checkout.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ class Aplazame_Aplazame_BusinessModel_Checkout {
88
public static function createFromOrder( WC_Order $order, $checkout_url ) {
99
$apiRouter = WC()->api_request_url( 'aplazame' );
1010

11-
$merchant = new stdClass();
12-
$merchant->ko_url = html_entity_decode( $order->get_cancel_order_url() );
13-
$merchant->dismiss_url = html_entity_decode( $checkout_url );
14-
$merchant->success_url = html_entity_decode( $order->get_checkout_order_received_url() );
15-
$merchant->pending_url = $merchant->success_url;
16-
$merchant->notification_url = add_query_arg( array( 'path' => '/confirm/' ), $apiRouter );
17-
$merchant->customer_history_url = add_query_arg( array( 'path' => '/order/history/' ), $apiRouter );
11+
$merchant = new stdClass();
12+
$merchant->ko_url = html_entity_decode( $order->get_cancel_order_url() );
13+
$merchant->dismiss_url = html_entity_decode( $checkout_url );
14+
$merchant->success_url = html_entity_decode( $order->get_checkout_order_received_url() );
15+
$merchant->pending_url = $merchant->success_url;
16+
$merchant->notification_url = add_query_arg( array( 'path' => '/confirm/' ), $apiRouter );
1817

1918
$checkout = new self();
2019
$checkout->toc = true;

0 commit comments

Comments
 (0)