gpt4 book ai didi

ionic-framework - 如何在 Ionic 中运行我的 'INR' 货币的 PayPal 代码

转载 作者:太空宇宙 更新时间:2023-11-03 15:57:38 24 4
gpt4 key购买 nike

我在我的 Ionic 应用程序中工作,我在我的应用程序中添加了 PayPal native 插件,但是当我在 PayPal 代码中添加“INR”货币时,它没有在真实设备中打开,当我将货币更改为 ' USD' 正在开盘。

这是我的checkout.ts:

 makepaymentp()
{
//console.log("Payment");
this.PayPalMobile.init({
PayPalEnvironmentProduction: 'YOUR_PRODUCTION_CLIENT_ID',
PayPalEnvironmentSandbox: '-----------------------------',
}).then(() => {
// Environments: PayPalEnvironmentNoNetwork, PayPalEnvironmentSandbox, PayPalEnvironmentProduction
this.PayPalMobile.prepareToRender('PayPalEnvironmentSandbox', new PayPalConfiguration({
// Only needed if you get an "Internal Service Error" after PayPal login!
//payPalShippingAddressOption: 2 // PayPalShippingAddressOptionPayPal
})).then(() => {
let payment = new PayPalPayment(this.totalpricec, 'INR', 'Description', 'sale');
this.PayPalMobile.renderSinglePaymentUI(payment).then(() => {
// Successfully paid

// Example sandbox response
//
// {
// "client": {
// "environment": "sandbox",
// "product_name": "PayPal iOS SDK",
// "paypal_sdk_version": "2.16.0",
// "platform": "iOS"
// },
// "response_type": "payment",
// "response": {
// "id": "PAY-1AB23456CD789012EF34GHIJ",
// "state": "approved",
// "create_time": "2016-10-03T13:33:33Z",
// "intent": "sale"
// }
// }
}, () => {
// Error or render dialog closed without being successful
console.log("Error or render dialog closed without being successful");
});
}, () => {
// Error in configuration
console.log("Error in configuration");
});
}, () => {
// Error in initialization, maybe PayPal isn't supported or something else
console.log("Error in initialization, maybe PayPal isn't supported or something");
});
}

我在我的设备上运行该应用程序,它不是针对“INR”运行的,而是针对“USD”运行的。

任何人都可以帮助我如何在 Ionic App 的 PayPal 中运行“INR”代码。

非常感谢任何帮助。

最佳答案

{
"scope": "https://uri.paypal.com/services/subscriptions https://api.paypal.com/v1/payments/.* https://api.paypal.com/v1/vault/credit-card https://uri.paypal.com/services/applications/webhooks openid https://uri.paypal.com/payments/payouts https://api.paypal.com/v1/vault/credit-card/.*",
"nonce": "2017-06-08T18:30:28ZCl54Q_OlDqP6-4D03sDT8wRiHjKrYlb5EH7Di0gRrds",
"access_token": "Access-Token",
"token_type": "Bearer",
"app_id": "APP-80W284485P519543T",
"expires_in": 32398
}

关于ionic-framework - 如何在 Ionic 中运行我的 'INR' 货币的 PayPal 代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54841692/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com