[英]PayPal Checkout with Smart Payment Buttons (React + Redux) create order problem
[英]PayPal Checkout subscribe buttons only show two payment methods, and enableFunding has no effect
我想在我的 React 應用程序中顯示不同的付款方式,但我沒有讓它工作,它只顯示兩個按鈕:“PayPal 訂閱”和“借記卡或信用卡”
我正在使用 react-paypal-button-v2
這是我的實現:
<PayPalButton
amount={amount}
currency={currency}
createSubscription={(data, details) => createSubscription(data, details)}
onApprove={(data, details) => onApprove(data, details)}
onError={(err) => onError(err)}
catchError={(err) => catchError(err)}
onCancel={(err) => onCancel(err)}
options={{
clientId: process.env.REACT_APP_PP_CLIENT_ID,
vault:true,
currency: "EUR",
enableFunding: "card,venmo,mercadopago",
intent: "subscription"
}}
style={{
shape: 'rect',
color: 'white',
layout: 'vertical',
label: 'subscribe'
}}
/>
我嘗試使用 enableFunding: < payment-methods > 但它不再顯示我一開始擁有的按鈕。
它只會顯示您作為買家有資格獲得的按鈕,尤其是 venmo 只能在美國的移動設備上獲得資格,並且可能根本不適用於訂閱付款(某些資金類型不能用於訂閱,並且所以沒有資格)
要作為來自其他國家/地區的買家進行測試,您可以將&buyer-country=XX
添加到您的 SDK 行,該模塊應通過options={{
支持該行。 這個buyer-country參數只在沙箱中有效,如果在live模式下設置會出錯
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.