nightlybuilds-net / xam.paypal.ios Goto Github PK
View Code? Open in Web Editor NEWXamarin iOS Paypal SDK binding library
Xamarin iOS Paypal SDK binding library
Hello there,
I am trying to add a shipping address to the demo app just to see if it works, but it is crashing. I was wondering if you might be able to help me figure out what I'm doing wrong?
In my ViewDidLoad
within Xam.PayPal.iOS.Demo/ViewController.cs
, I changed the appropriate line to allow for a provided address, instead of .PayPal
I now have .Provided
:
...
_payPalConfig.PayPalShippingAddressOption = PayPalShippingAddressOption.Provided;
...
Next, within Xam.PayPal.iOS.Demo/ViewController.cs
, I've changed the PayNowTouched
method to include a PayPalShippingAddress
:
partial void PayNowTouched(Foundation.NSObject sender)
{
var payment = PayPalPayment.PaymentWithAmount(new Foundation.NSDecimalNumber(24.12), "EUR", "Mark Jack Milian", PayPalPaymentIntent.Sale);
var address = new PayPalShippingAddress(){
RecipientName = "DG Test" ,
Line1 = "1600 Pennsylvania Ave NW",
Line2 = "",
City = "Washington",
State = "DC",
PostalCode = "20500"//,
//CountryCode = "USA",
};
payment.ShippingAddress = address;
var paymentViewController = new PayPalPaymentViewController(payment, _payPalConfig, this._myDelegate);
this.PresentViewController(paymentViewController, true, null);
}
The following exception gets thrown when the new PayPalPaymentViewController
is created (second to last line of PayNowTouched
):
Unhandled Exception:
System.Exception: Could not initialize an instance of the type 'Xam.PayPal.iOS.PayPalPaymentViewController': the native 'initWithPayment:configuration:delegate:' method returned nil.
It is possible to ignore this condition by setting MonoTouch.ObjCRuntime.Class.ThrowOnInitFailure to false. occurred
Any help would be greatly appreciated. Do I need to make changes to Xam.PayPal.iOS\ApiDefinition.cs
?
Thanks!
xam.paypal.ios is getting crashed when app build with ARMv64 architecture support.
I am working on xamarin.IOS ,what is the solution?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.