Skip to content

Commit

Permalink
Merge pull request #334 from OXID-eSales/PSPAYPAL-832_TplError
Browse files Browse the repository at this point in the history
Fix order of closing brackets in applepay-template
  • Loading branch information
HonkDerHase authored Sep 5, 2024
2 parents 2e92af8 + 4450ba5 commit e785b12
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### FIX

- Fix order of closing brackets in applepay-template
- [0007711](https://bugs.oxid-esales.com/view.php?id=7711): Temporary orders that are no longer needed and already have an order number will be cancelled. Temporary orders without an order number will still be deleted
- Provide BN codes even to previously overlooked API calls

Expand Down
16 changes: 8 additions & 8 deletions views/tpl/shared/applepay.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
float: right;
}
</style>
[{if $phpstorm}]<script>[{/if}]
[{capture name="detailsApplePayScript"}]
[{capture name="detailsApplePayScript"}]
[{if $phpstorm}]<script>[{/if}]
let order_id;
let global_apple_pay_config;
let current_ap_session;
Expand Down Expand Up @@ -67,7 +67,8 @@
[{if $config->isSandbox()}]
console.log('Payment Request Data:', globalPaymentRequestData);
console.log('--- End preloadPaymentRequestData ---');
} [{/if}]
[{/if}]
}
// Function to handle closing alerts
const handle_close = (event) => {
Expand Down Expand Up @@ -330,8 +331,7 @@
console.log('--- End handle_applepay_clicked ---');
[{/if}]
};
[{/capture}]
[{oxscript include="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js" }]
[{oxscript add=$smarty.capture.detailsApplePayScript}]
[{if $phpstorm}]</script>[{/if}]
[{/capture}]
[{oxscript include="https://applepay.cdn-apple.com/jsapi/v1/apple-pay-sdk.js" }]
[{oxscript add=$smarty.capture.detailsApplePayScript}]

0 comments on commit e785b12

Please sign in to comment.