Remove not needed code.

This commit is contained in:
Pedro Silva 2024-01-24 18:15:50 +00:00
parent 3b4bab512f
commit 94b92d8434
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
2 changed files with 2 additions and 2 deletions

View file

@ -209,7 +209,7 @@ class ApplepayButton {
/**
* Show Apple Pay payment sheet when Apple Pay payment button is clicked
*/
async onButtonClick(data, actions) {
async onButtonClick() {
this.log('onButtonClick', this.context);
const paymentRequest = this.paymentRequest();

View file

@ -77,7 +77,7 @@ const PayPalComponent = ({
window.ppcpContinuationFilled = true;
}, [])
const createOrder = async (data, actions) => {
const createOrder = async () => {
try {
const res = await fetch(config.scriptData.ajax.create_order.endpoint, {
method: 'POST',