Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/ach.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});
let paymentIntentClientSecret;

Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/acss.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

// When the form is submitted...
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/affirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

// When the form is submitted...
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/afterpay-clearpay.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

// When the form is submitted...
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/alipay.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

// When the form is submitted...
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/apple-pay.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ document.addEventListener('DOMContentLoaded', async () => {

// 1. Initialize Stripe
const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

// 2. Create a payment request object
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/boleto.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

// When the form is submitted...
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

const elements = stripe.elements();
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/eps.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});
const elements = stripe.elements();
const epsBank = elements.create('epsBank');
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/fpx.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});
const elements = stripe.elements();
const fpxBank = elements.create('fpxBank', {
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/giropay.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

// When the form is submitted...
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/google-pay.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ document.addEventListener('DOMContentLoaded', async () => {

// 1. Initialize Stripe
const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

// 2. Create a payment request object
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/grabpay.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ document.addEventListener('DOMContentLoaded', async () => {
alert('Please set your Stripe publishable API key in the .env file');
}
const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

// When the form is submitted...
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/ideal.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

const elements = stripe.elements();
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/klarna.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

// When the form is submitted...
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/konbini.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ document.addEventListener('DOMContentLoaded', async () => {

const stripe = Stripe(publishableKey, {
betas: ['konbini_pm_beta_1'],
apiVersion: '2020-08-27; konbini_beta=v1',
apiVersion: '2025-12-15.clover',
});

// When the form is submitted...
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2022-11-15',
apiVersion: '2025-12-15.clover',
});

const { clientSecret } = await fetch('/create-payment-intent', {
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/oxxo.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

// When the form is submitted...
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/p24.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

const elements = stripe.elements();
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/paypal.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ document.addEventListener('DOMContentLoaded', async () => {

// 1. Initialize Stripe
const stripe = Stripe(publishableKey, {
apiVersion: '2024-06-20',
apiVersion: '2025-12-15.clover',
});

MODE = 'payment';
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/return.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

const url = new URL(window.location);
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/sepa-debit.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

const elements = stripe.elements();
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/sofort.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ document.addEventListener('DOMContentLoaded', async () => {
}

const stripe = Stripe(publishableKey, {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

// When the form is submitted...
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/client/html/wechatpay.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ document.addEventListener('DOMContentLoaded', async () => {
alert('Please set your Stripe publishable API key in the .env file');
}
const stripe = Stripe(publishableKey, {
apiVersion: '2020-03-02',
apiVersion: '2025-12-15.clover',
});

// When the form is submitted...
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/node/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const calculateTax = false;
// See https://docs.stripe.com/keys-best-practices and find your
// keys at https://dashboard.stripe.com/apikeys.
const stripe = require('stripe')(process.env.STRIPE_SECRET_KEY, {
apiVersion: '2023-10-16',
apiVersion: '2025-12-15.clover',
appInfo: {
// For sample support and debugging, not required for production:
name: 'stripe-samples/accept-a-payment/custom-payment-flow',
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/acss.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<script>
document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

const paymentForm = document.querySelector('#payment-form');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script>
document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});
const paymentForm = document.querySelector('#payment-form');
paymentForm.addEventListener('submit', async (e) => {
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/alipay.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script>
document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

const paymentForm = document.querySelector('#payment-form');
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/apple-pay.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
document.addEventListener('DOMContentLoaded', async () => {
// 1. Initialize Stripe
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

// 2. Create a payment request object
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/bancontact.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<script>
document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});
const paymentForm = document.querySelector('#payment-form');
paymentForm.addEventListener('submit', async (e) => {
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/becs-debit.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<script>
document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});
const elements = stripe.elements();
const auBankAccount = elements.create('auBankAccount');
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/boleto.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script>
document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

const paymentForm = document.querySelector('#payment-form');
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<script>
document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});
const elements = stripe.elements();
const cardElement = elements.create('card');
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/eps.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<script>
document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

const elements = stripe.elements();
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/fpx.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script>
document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

const elements = stripe.elements();
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/giropay.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<script>
document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});
const paymentForm = document.querySelector('#payment-form');
paymentForm.addEventListener('submit', async (e) => {
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/google-pay.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
document.addEventListener('DOMContentLoaded', async () => {
// 1. Initialize Stripe
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

// 2. Create a payment request object
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/grabpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<script>
document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});
const paymentForm = document.querySelector('#payment-form');
paymentForm.addEventListener('submit', async (e) => {
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/ideal.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script>
document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});


Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/konbini.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

// When the form is submitted...
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/link.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<script>
document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2022-11-15',
apiVersion: '2025-12-15.clover',
});
// Enable the skeleton loader UI for the optimal loading experience.
const loader = 'auto';
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/oxxo.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script>
document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

const paymentForm = document.querySelector('#payment-form');
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/p24.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<script>
document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});

const elements = stripe.elements();
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/php/public/sepa-debit.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<script>
document.addEventListener('DOMContentLoaded', async () => {
const stripe = Stripe('<?= $_ENV["STRIPE_PUBLISHABLE_KEY"]; ?>', {
apiVersion: '2020-08-27',
apiVersion: '2025-12-15.clover',
});
const elements = stripe.elements();
const iban = elements.create('iban', {
Expand Down
Loading