您的请求失败。使用其他付款方式,或联系我们。在 Google 支付中了解更多 [OR-CCSEH-21]
Your request failed. Use a different payment method, or contact us. Learn more [OR-CCSEH-21] in Google Pay
我需要测试google使用假卡支付。但是当我插入卡详细信息 Your request failed. Use a different payment method, or contact us. Learn more [OR-CCSEH-21]
时,会发生此错误。这是我在 Angular 中的代码。我正在使用来自以下[link]https://developers.google.com/pay/api/android/guides/resources/sample-tokens
的这些假卡
paymentRequest: google.payments.api.PaymentDataRequest = {
apiVersion: 2,
apiVersionMinor: 0,
allowedPaymentMethods: [
{
type: 'CARD',
parameters: {
allowedAuthMethods: ['PAN_ONLY', 'CRYPTOGRAM_3DS'],
allowedCardNetworks: ['AMEX', 'VISA', 'MASTERCARD']
},
tokenizationSpecification: {
type: 'PAYMENT_GATEWAY',
parameters: {
gateway: 'moneris',
gatewayMerchantId: 'monca05217',
}
}
}
],
merchantInfo: {
merchantId: '12345678901234567890',
merchantName: 'Demo Merchant',
},
transactionInfo: {
totalPriceStatus: 'FINAL',
totalPriceLabel: 'Total',
totalPrice: '0.10',
currencyCode: 'EUR',
countryCode: 'BE'
},
callbackIntents: ['PAYMENT_AUTHORIZATION']
};
onLoadPaymentData = (
event: Event
): void => {
const eventDetail = event as CustomEvent<google.payments.api.PaymentData>;
console.log('load payment data', eventDetail.detail);
}
onPaymentDataAuthorized: google.payments.api.PaymentAuthorizedHandler = (
paymentData
) => {
console.log('payment authorized', paymentData);
return {
transactionState: 'SUCCESS'
};
}
onError = (event: ErrorEvent): void => {
console.error('error', event.error);
}
测试Google在沙盒模式下支付。请尝试以下
- 创建一个新的 Gmail 帐户用于测试
- 使用新创建的 Gmail 帐户并加入 google 组 https://groups.google.com/g/googlepay-test-mode-stub-data。
- 所有需要的测试卡都将添加到您的 Gmail 帐户。
- 为了测试 Google 支付,请使用新创建的 Gmail 帐户。
可以在此处找到更多详细信息:https://developers.google.com/pay/api/android/guides/resources/test-card-suite
我不太确定你的用例,但我希望这对你有所帮助。
我需要测试google使用假卡支付。但是当我插入卡详细信息 Your request failed. Use a different payment method, or contact us. Learn more [OR-CCSEH-21]
时,会发生此错误。这是我在 Angular 中的代码。我正在使用来自以下[link]https://developers.google.com/pay/api/android/guides/resources/sample-tokens
paymentRequest: google.payments.api.PaymentDataRequest = {
apiVersion: 2,
apiVersionMinor: 0,
allowedPaymentMethods: [
{
type: 'CARD',
parameters: {
allowedAuthMethods: ['PAN_ONLY', 'CRYPTOGRAM_3DS'],
allowedCardNetworks: ['AMEX', 'VISA', 'MASTERCARD']
},
tokenizationSpecification: {
type: 'PAYMENT_GATEWAY',
parameters: {
gateway: 'moneris',
gatewayMerchantId: 'monca05217',
}
}
}
],
merchantInfo: {
merchantId: '12345678901234567890',
merchantName: 'Demo Merchant',
},
transactionInfo: {
totalPriceStatus: 'FINAL',
totalPriceLabel: 'Total',
totalPrice: '0.10',
currencyCode: 'EUR',
countryCode: 'BE'
},
callbackIntents: ['PAYMENT_AUTHORIZATION']
};
onLoadPaymentData = (
event: Event
): void => {
const eventDetail = event as CustomEvent<google.payments.api.PaymentData>;
console.log('load payment data', eventDetail.detail);
}
onPaymentDataAuthorized: google.payments.api.PaymentAuthorizedHandler = (
paymentData
) => {
console.log('payment authorized', paymentData);
return {
transactionState: 'SUCCESS'
};
}
onError = (event: ErrorEvent): void => {
console.error('error', event.error);
}
测试Google在沙盒模式下支付。请尝试以下
- 创建一个新的 Gmail 帐户用于测试
- 使用新创建的 Gmail 帐户并加入 google 组 https://groups.google.com/g/googlepay-test-mode-stub-data。
- 所有需要的测试卡都将添加到您的 Gmail 帐户。
- 为了测试 Google 支付,请使用新创建的 Gmail 帐户。
可以在此处找到更多详细信息:https://developers.google.com/pay/api/android/guides/resources/test-card-suite
我不太确定你的用例,但我希望这对你有所帮助。