贝宝状态待定

编程入门 行业动态 更新时间:2024-10-24 12:20:51
本文介绍了贝宝状态待定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好,我的应用程序中的每个人都必须使用Paypal兑换挪威货币(NOK),但一切都很好,但是当我使用沙箱测试Paypal时,状态变为未决,而当我尝试使用相同的美元代码时,状态为批准了为什么会这样. 这是我的代码和响应

hello everyone in my application i have to use Paypal for Norway currency(NOK) and everything is fine but when i used sandbox for testing the Paypal the state comes as pending while when i tried the same code for US Dollars the state is approved why this happening. Here is my code and response

@try { self.resultText = nil; NSUserDefaults *defpay=[NSUserDefaults standardUserDefaults]; NSString *mon=[defpay objectForKey:@"month"]; app *ap=[app new]; dictpay=[ap paypal:mon category:_strcategoryid1 catid:_strpostid1]; NSString *strprice=[dictpay objectForKey:@"price"]; _lbl.text=strprice; NSLog(@"%@", _lbl.text); PayPalPayment *payment = [[PayPalPayment alloc] init]; payment.amount = [[NSDecimalNumber alloc] initWithString:strprice]; //payment.amount = [[NSDecimalNumber alloc] initWithString:@"12"]; payment.currencyCode = @"NOK"; payment.shortDescription = @"Payment"; if (!payment.processable) { // This particular payment will always be processable. If, for // example, the amount was negative or the shortDescription was // empty, this payment wouldn't be processable, and you'd want // to handle that here. } // Update payPalConfig re accepting credit cards. self.payPalConfig.acceptCreditCards = self.acceptCreditCards; PayPalPaymentViewController *paymentViewController; paymentViewController = [[PayPalPaymentViewController alloc] initWithPayment:payment configuration:self.payPalConfig delegate:self]; // Present the PayPalPaymentViewController. [self presentViewController:paymentViewController animated:YES completion:nil]; } @catch(NSException *e) { NSLog(@"%@",e.reason); }

这是我对NOK的答复

Here is the response which i got for NOK

client = { environment = sandbox; "paypal_sdk_version" = "2.0.5"; platform = iOS; "product_name" = "PayPal iOS SDK"; }; response = { "create_time" = "2014-04-30T05:43:49Z"; id = "PAY-7DX14671UN8535156KNQI3FI"; intent = sale; state = pending; }; "response_type" = payment; }

推荐答案

我遇到了同样的问题,问题是买方正在使用不是卖方默认货币的货币进行购买,默认情况下,贝宝设置了某些内容例如手动批准不同的货币,因为它们需要转换费.

I had the same issue, the problem is the buyer is buying buy using a currency which is not the default currency of the seller, and by default paypal set something like manually approve different currencies, as they have conversion fee.

登录到您的沙箱帐户,然后单击配置文件,然后选择我的销售首选项",然后在该页面上单击付款接收首选项".然后选择

Login to your sandbox account, and click on profile then choose My Selling Preferences and on that page click on payment receiving preferences. And there choose

允许以我不持有的货币发送给我的付款 是的,接受并将其转换为blabla

Allow payments sent to me in a currency I do not hold Yes, accept and convert them to blabla

此后,您的测试将恢复正常并且也将被批准

After this your tests will be back to normal and they will be approved too

设置屏幕截图:

更改后,请不要忘记保存您的设置:)

Dont forget to save your settings after changing :)

更多推荐

贝宝状态待定

本文发布于:2023-11-27 06:56:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1637052.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:待定   贝宝   状态

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!