簡體   English   中英

登錄后,信用卡未顯示在“貝寶沙盒付款選項”中

[英]Credit Card is not shown in PayPal Sandbox Payment Option After Login

我目前正在嘗試通過參考此鏈接PayPal添加到我的Ionic 2應用程序中

在PayPal沙盒環境中,我不知道為什么使用沙盒買家帳戶登錄后在PayPal付款選項中不顯示信用卡的原因。

這是我連接到PayPal的代碼:

payViaPaypal() {
    let env = this;
    this.payPal.init({
        PayPalEnvironmentProduction: paypal.PayPalEnvironmentProduction,
        PayPalEnvironmentSandbox: paypal.PayPalEnvironmentSandbox
    }).then(() => {
        env.payPal.prepareToRender(paypal.CurrentEnvironment, new PayPalConfiguration({})).then(() => {
            let payment = new PayPalPayment('3.33', 'MYR', 'Description', 'sale');
            env.payPal.renderSinglePaymentUI(payment).then((result) => {
                if (result.response.state == "approved") {
                    console.log("Success!")
                }
            }, () => {
                console.error('Error or render dialog closed without being successful');
            });
        }, () => {
            console.error('Error in configuration');
        });
    }, () => {
        console.error('Error in initialization, maybe PayPal isn\'t supported or something else');
    });
}

這是屏幕截圖:
在此處輸入圖片說明

此帳戶中未顯示信用卡的原因是,我在PayPal沙盒環境中使用MYR作為貨幣 在PayPal Sandbox環境中,任何信用卡交易都只允許使用USD ,否則,當您使用其他貨幣進行信用卡交易時,您將收到錯誤消息。 因此,在我將貨幣更改為USD之后,一切對我來說都很好。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM