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
10 changes: 10 additions & 0 deletions examples/nextjs/app/checkout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ export function CheckoutPage({ session }: { session: CheckoutSession }) {
paypalConfig={{
clientId: process.env.NEXT_PUBLIC_PAYPAL_CLIENT_ID || '',
}}
ccavenueConfig={
process.env.NEXT_PUBLIC_CCAVENUE_ACCESS_CODE_ID &&
process.env.NEXT_PUBLIC_CCAVENUE_REDIRECT_URL
? {
accessCodeId:
process.env.NEXT_PUBLIC_CCAVENUE_ACCESS_CODE_ID,
redirectURL: process.env.NEXT_PUBLIC_CCAVENUE_REDIRECT_URL,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should be setting the redirectURL in the payment component itself how we load payment method js files for example. The consumer of checkout shouldn't have to know what URL ccavanue needs to use to create their checkout.

const squareCDN =
    apiHost && !apiHost.includes('test') && !apiHost.includes('dev')
      ? 'https://web.squarecdn.com/v1/square.js'
      : 'https://sandbox.web.squarecdn.com/v1/square.js';

}
: undefined
}
/>
);
}
4 changes: 4 additions & 0 deletions examples/nextjs/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ export default async function Home() {
processor: 'godaddy',
checkoutTypes: ['standard'],
},
ccavenue: {
processor: 'ccavenue',
checkoutTypes: ['standard'],
},
express: {
processor: 'godaddy',
checkoutTypes: ['express'],
Expand Down
4 changes: 4 additions & 0 deletions examples/nextjs/app/store/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ export async function checkoutWithOrder(orderId: string) {
processor: 'godaddy',
checkoutTypes: ['standard'],
},
ccavenue: {
processor: 'ccavenue',
checkoutTypes: ['standard'],
},
express: {
processor: 'godaddy',
checkoutTypes: ['express'],
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/deDe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const deDe = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: 'Offline-Zahlungen',
ccavenue: 'Mit CCAvenue bezahlen',
},
descriptions: {
creditCard: '',
Expand All @@ -114,6 +115,7 @@ export const deDe = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: 'Keine Zahlungsmethoden verfügbar',
cardNumber: 'Kartennummer',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/enIe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const enIe = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: 'Offline payments',
ccavenue: 'Pay with CCAvenue',
},
descriptions: {
creditCard: '',
Expand All @@ -114,6 +115,7 @@ export const enIe = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: 'No payment methods available',
cardNumber: 'Card number',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/enUs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const enUs = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: 'Offline payments',
ccavenue: 'Pay with CCAvenue',
},
descriptions: {
creditCard: '',
Expand All @@ -114,6 +115,7 @@ export const enUs = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: 'No payment methods available',
cardNumber: 'Card number',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/esAr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const esAr = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: 'Pagos en efectivo',
ccavenue: 'الدفع عبر CCAvenue',
},
descriptions: {
creditCard: '',
Expand All @@ -115,6 +116,7 @@ export const esAr = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: 'No hay métodos de pago disponibles',
cardNumber: 'Número de tarjeta',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/esCl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const esCl = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: 'Pagos offline',
ccavenue: 'Pagar con CCAvenue',
},
descriptions: {
creditCard: '',
Expand All @@ -115,6 +116,7 @@ export const esCl = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: 'No hay métodos de pago disponibles',
cardNumber: 'Número de tarjeta',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/esCo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const esCo = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: 'Pagos sin conexión',
ccavenue: 'Pagar con CCAvenue',
},
descriptions: {
creditCard: '',
Expand All @@ -115,6 +116,7 @@ export const esCo = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: 'No hay métodos de pago disponibles',
cardNumber: 'Número de tarjeta',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/esEs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const esEs = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: 'Pagos sin conexión',
ccavenue: 'Pagar con CCAvenue',
},
descriptions: {
creditCard: '',
Expand All @@ -115,6 +116,7 @@ export const esEs = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: 'No hay métodos de pago disponibles',
cardNumber: 'Número de tarjeta',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/esMx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const esMx = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: 'Pagos fuera de línea',
ccavenue: 'Pagar con CCAvenue',
},
descriptions: {
creditCard: '',
Expand All @@ -115,6 +116,7 @@ export const esMx = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: 'No hay métodos de pago disponibles',
cardNumber: 'Número de tarjeta',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/esPe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const esPe = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: 'Pagos en efectivo',
ccavenue: 'Pagar con CCAvenue',
},
descriptions: {
creditCard: '',
Expand All @@ -115,6 +116,7 @@ export const esPe = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: 'No hay métodos de pago disponibles',
cardNumber: 'Número de tarjeta',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/esUs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const esUs = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: 'Pagos offline',
ccavenue: 'Pagar con CCAvenue',
},
descriptions: {
creditCard: '',
Expand All @@ -115,6 +116,7 @@ export const esUs = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: 'No hay métodos de pago disponibles',
cardNumber: 'Número de tarjeta',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/frCa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const frCa = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: 'Paiements hors ligne',
ccavenue: 'Payer avec CCAvenue',
},
descriptions: {
creditCard: '',
Expand All @@ -115,6 +116,7 @@ export const frCa = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: 'Aucune méthode de paiement disponible',
cardNumber: 'Numéro de carte',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/frFr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const frFr = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: 'Paiements hors ligne',
ccavenue: 'Payer avec CCAvenue',
},
descriptions: {
creditCard: '',
Expand All @@ -115,6 +116,7 @@ export const frFr = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: 'Aucune méthode de paiement disponible',
cardNumber: 'Numéro de carte',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/idId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const idId = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: 'Pembayaran offline',
ccavenue: 'Bayar dengan CCAvenue',
},
descriptions: {
creditCard: '',
Expand All @@ -114,6 +115,7 @@ export const idId = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: 'Tidak ada metode pembayaran tersedia',
cardNumber: 'Nomor kartu',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/itIt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const itIt = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: 'Pagamenti offline',
ccavenue: 'Paga con CCAvenue',
},
descriptions: {
creditCard: '',
Expand All @@ -115,6 +116,7 @@ export const itIt = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: 'Nessun metodo di pagamento disponibile',
cardNumber: 'Numero della carta',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/ptBr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const ptBr = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: 'Pagamentos offline',
ccavenue: 'Pagar com CCAvenue',
},
descriptions: {
creditCard: '',
Expand All @@ -114,6 +115,7 @@ export const ptBr = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: 'Nenhum método de pagamento disponível',
cardNumber: 'Número do cartão',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/qaPs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export const qaPs = {
googlePay: '[Göögië Þâÿ Þâÿmëñţ]',
paze: '[Þâžë Þâÿmëñţ Šërvîçë]',
offline: '[Öfflîñë þâÿmëñţ mëţhödš]',
ccavenue: '[Þâÿ ïñ ÇÇÂvëñûë]',
},
descriptions: {
creditCard: '',
Expand All @@ -115,6 +116,7 @@ export const qaPs = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: '[Ñö þâÿmëñţ mëţhödš âvâîlâblë âţ ţhîš ţîmë]',
cardNumber: '[Çârd ñümkër îñþüţ fîëld]',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/trTr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const trTr = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: 'Çevrimdışı ödemeler',
ccavenue: 'CCAvenue ile öde',
},
descriptions: {
creditCard: '',
Expand All @@ -114,6 +115,7 @@ export const trTr = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: 'Kullanılabilir ödeme yöntemi yok',
cardNumber: 'Kart numarası',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/viVn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const viVn = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: 'Thanh toán ngoại tuyến',
ccavenue: 'Thanh toán bằng CCAvenue',
},
descriptions: {
creditCard: '',
Expand All @@ -114,6 +115,7 @@ export const viVn = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: 'Không có phương thức thanh toán nào',
cardNumber: 'Số thẻ',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/zhCn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const zhCn = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: '线下付款',
ccavenue: '使用 CCAvenue 支付',
},
descriptions: {
creditCard: '',
Expand All @@ -110,6 +111,7 @@ export const zhCn = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: '暂无可用的付款方式',
cardNumber: '卡号',
Expand Down
2 changes: 2 additions & 0 deletions packages/localizations/src/zhSg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export const zhSg = {
googlePay: 'Google Pay',
paze: 'Paze',
offline: '线下付款',
ccavenue: '使用 CCAvenue 支付',
},
descriptions: {
creditCard: '',
Expand All @@ -110,6 +111,7 @@ export const zhSg = {
googlePay: '',
paze: '',
offline: '',
ccavenue: '',
},
noMethodsAvailable: '无可用付款方式',
cardNumber: '卡号',
Expand Down
Loading