如何在Xamarin.Forms中实现Paypal签出选项?

如何在Xamarin.Forms中实现Paypal签出选项?,xamarin,xamarin.forms,paypal,payment-gateway,payment,Xamarin,Xamarin.forms,Paypal,Payment Gateway,Payment,我使用Xamarin制作了一个移动商务应用程序。表单,用户可以通过支付集成进行结账,我必须使用paypal方法进行结账,我使用的是。NET标准项目和项目也参考UWP。我检查默认贝宝的例子,但我没有得到帮助 我有新的支付整合方法 有人能对此进行调查并建议我在这方面应该做些什么吗?您可以使用该插件: 在MainActivity(Android)/AppDelegate(iOS)中,在“Forms.Init()”之后使用PayPal配置值调用Init方法 global::Xamarin.Forms.F

我使用Xamarin制作了一个移动商务应用程序。表单,用户可以通过支付集成进行结账,我必须使用paypal方法进行结账,我使用的是。NET标准项目和项目也参考
UWP
。我检查默认贝宝的例子,但我没有得到帮助

我有新的支付整合方法

有人能对此进行调查并建议我在这方面应该做些什么吗?

您可以使用该插件:

在MainActivity(Android)/AppDelegate(iOS)中,在“Forms.Init()”之后使用PayPal配置值调用Init方法

global::Xamarin.Forms.Forms.Init ();
var config = new PayPalConfiguration(PayPalEnvironment.NoNetwork,"Your PayPal ID from 
https://developer.paypal.com/developer/applications/")
{
//If you want to accept credit cards
AcceptCreditCards = true,
//Your business name
MerchantName = "Test Store",
//Your privacy policy Url
MerchantPrivacyPolicyUri = "https://www.example.com/privacy",
//Your user agreement Url
MerchantUserAgreementUri = "https://www.example.com/legal",
// OPTIONAL - ShippingAddressOption (Both, None, PayPal, Provided)
ShippingAddressOption = ShippingAddressOption.Both,
// OPTIONAL - Language: Default languege for PayPal Plug-In
Language = "es",
// OPTIONAL - PhoneCountryCode: Default phone country code for PayPal Plug-In
PhoneCountryCode = "52",
};

 //iOS
 CrossPayPalManager.Init(config);

//Android
 CrossPayPalManager.Init(config, this);
 ...
你可以在他们的Github上找到所有重要的API

如果出现问题或类似问题,请随时回复

,您可以使用该插件:

在MainActivity(Android)/AppDelegate(iOS)中,在“Forms.Init()”之后使用PayPal配置值调用Init方法

global::Xamarin.Forms.Forms.Init ();
var config = new PayPalConfiguration(PayPalEnvironment.NoNetwork,"Your PayPal ID from 
https://developer.paypal.com/developer/applications/")
{
//If you want to accept credit cards
AcceptCreditCards = true,
//Your business name
MerchantName = "Test Store",
//Your privacy policy Url
MerchantPrivacyPolicyUri = "https://www.example.com/privacy",
//Your user agreement Url
MerchantUserAgreementUri = "https://www.example.com/legal",
// OPTIONAL - ShippingAddressOption (Both, None, PayPal, Provided)
ShippingAddressOption = ShippingAddressOption.Both,
// OPTIONAL - Language: Default languege for PayPal Plug-In
Language = "es",
// OPTIONAL - PhoneCountryCode: Default phone country code for PayPal Plug-In
PhoneCountryCode = "52",
};

 //iOS
 CrossPayPalManager.Init(config);

//Android
 CrossPayPalManager.Init(config, this);
 ...
你可以在他们的Github上找到所有重要的API

如果出现问题或类似情况,请随时回复