Permalink
Browse files

Added PayPal bindings

  • Loading branch information...
1 parent 4ddb8f3 commit 15ed3bf95c23b4c5116ab13e00429bea23fa20a9 @migueldeicaza migueldeicaza committed Sep 3, 2011
Showing with 502 additions and 0 deletions.
  1. +7 −0 PayPal/Makefile
  2. +104 −0 PayPal/defs.cs
  3. +391 −0 PayPal/paypal.cs
View
@@ -0,0 +1,7 @@
+all: paypal.dll
+
+paypal.dll: Makefile defs.cs paypal.cs
+ /Developer/MonoTouch/usr/bin/btouch paypal.cs defs.cs --out=paypal.dll
+
+clean:
+ -rm *dll
View
@@ -0,0 +1,104 @@
+/*
+ * PayPalDefs.cs: Core definitions
+ *
+ * Author:
+ * Miguel de Icaza (miguel@xamarin.com)
+ *
+ * Copyright 2011 Xamarin, Inc.
+ */
+
+namespace MonoTouch.PayPal {
+
+ public enum PayPalPaymentStatus {
+ Completed,
+ Created,
+ Other,
+ }
+
+ public enum PayPalEnvironment {
+ Live,
+ Sandbox,
+ None,
+ }
+
+ public enum PayPalButtonType {
+ Size152x33,
+ Size194x37,
+ Size278x43,
+ Size294x43,
+ }
+
+ public enum PayPalButtonText {
+ Pay, Donate
+ }
+
+ public enum PayPalFeePayer {
+ Sender,
+ PrimaryReceiver,
+ EachReceiver,
+ SecondaryOnly,
+ }
+
+ public enum PayPalFailureType {
+ SystemError,
+ RecipientError,
+ ApplicationError,
+ ConsumerError,
+ }
+
+ public enum PayPalPaymentType {
+ NotSet = -1,
+ Goods,
+ Service,
+ Personal,
+ }
+
+ public enum PayPalPaymentSubType {
+ NotSet = -1,
+ AffiliatePayments,
+ B2b,
+ Payroll,
+ Rebates,
+ Refunds,
+ Reimbursements,
+ Donations,
+ Utilities,
+ Tuition,
+ Government,
+ Insurance,
+ Remittances,
+ Rent,
+ Mortgage,
+ Medical,
+ ChildCare,
+ EventPlanning,
+ GeneralContractors,
+ Entertainment,
+ Tourism,
+ Invoice,
+ Transfer,
+ }
+
+ public enum PayPalAmountErrorCode {
+ None,
+ Server,
+ Other,
+ }
+
+ public enum PayPalInitializationStatus {
+ Not_Started,
+ CompletedSuccess,
+ CompletedError,
+ Inprogress,
+ }
+
+ public enum PayPalDayOfWeek {
+ NoneSpecified = -1,
+ Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday
+ }
+
+ public enum PayPalPaymentPeriod {
+ NoneSpecified = -1,
+ Daily, Weekly, BiWeekly, SemiMonthly, Monthly, Annually
+ }
+}
Oops, something went wrong.

0 comments on commit 15ed3bf

Please sign in to comment.