我在paypal沙盒帐户上工作,它工作得很好。但现在我继续使用Live paypal,因此我的PayPal按钮被禁用,日志上的错误显示是“您没有有效的PayPal发布的应用ID”。我如何获得有效的PayPal发行的应用ID?第二件事是PayPal中的"recipient"
和"customID"
?哪些更改使我的按钮启用。谢谢
我的PayPal帐户按钮代码是
var continueButton = Paypal.createPaypalButton({
// NOTE: height/width only determine the size of the view that the button is embedded in - the actual button size
// is determined by the buttonStyle property!
width: 194 + u, height: 37 + u,
//buttonStyle: Paypal.BUTTON_194x37, // The style & size of the button
bottom:60,
left : 84,
language: 'en_US',
//textStyle: PAYPAL_TEXT_PAY, // Causes the button's text to change from "Pay" to "Donate"
appID: 'APP-xxxxxxxxxxxxxxx', // The appID issued by Paypal for your application; for testing, feel free to delete this property entirely.
paypalEnvironment: Paypal.PAYPAL_ENV_LIVE, // Sandbox, None or Live .. For Device Paypal.PAYPAL_ENV_NONE
visible:false,
feePaidByReceiver: false,
enableShipping: false, // Whether or not to select/send shipping information
payment: { // The payment itself
//paymentType: Paypal.PAYMENT_TYPE_SERVICE, // The type of payment
subtotal: 25, // The total cost of the order, excluding tax and shipping
tax: 0,
shipping: 0,
currency: 'USD',
recipient: 'recipient email address',
customID: 'anythingYouWant',
invoiceItems: [
{ name: 'My App', totalPrice: amnt1, itemPrice: amnt1, itemCount: 1 },
],
merchantName: 'My App',
memo: 'For My App'
}
});
答案 0 :(得分:0)
使用PayPal时,您会使用其电子邮件作为ID向帐户汇款。所以“收件人”是接收者的电子邮件。 “customID”是您选择与事务关联的ID。对于appID,请使用本文。祝你好运! PayPal Reference