K Keith Flanagan Member Licensed User Aug 2, 2020 #1 Hi All I have a couple of questions about creating a wrap for a Java Project for Stripe Payments. Based on the sample Accept a card payment code from the stripe website : https://stripe.com/docs/payments/integration-builder Configured as follows: Platform: Android Frontend: Java Backend: Java I want to write a B4XLib that will allow me to use this Library with B4X Pages and B4A. Looking at the checkout activity and server .java files I think using the previous examples of creating wraps I will be able to implement this, however the View is what I'm wondering about. The sample uses : B4X: Copy <com.stripe.android.view.CardInputWidget android:id="@+id/cardInputWidget" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="20dp" android:layout_marginRight="20dp"/> What would be the best way to expose this CardIputWidget as a B4X View control. Or would I be better wrapping the entire thing in a WebPage and rendering using WebView? Thanks Attachments stripe-card-payment (1).zip stripe-card-payment (1).zip 14.2 KB · Views: 566
Hi All I have a couple of questions about creating a wrap for a Java Project for Stripe Payments. Based on the sample Accept a card payment code from the stripe website : https://stripe.com/docs/payments/integration-builder Configured as follows: Platform: Android Frontend: Java Backend: Java I want to write a B4XLib that will allow me to use this Library with B4X Pages and B4A. Looking at the checkout activity and server .java files I think using the previous examples of creating wraps I will be able to implement this, however the View is what I'm wondering about. The sample uses : B4X: Copy <com.stripe.android.view.CardInputWidget android:id="@+id/cardInputWidget" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginLeft="20dp" android:layout_marginRight="20dp"/> What would be the best way to expose this CardIputWidget as a B4X View control. Or would I be better wrapping the entire thing in a WebPage and rendering using WebView? Thanks
Pendrush Well-Known Member Licensed User Longtime User Aug 2, 2020 #2 Keith Flanagan said: What would be the best way to expose this CardIputWidget as a B4X View control Click to expand... From the wrapper, something like: Java: Copy CardInputWidget cardInputWidget = new CardInputWidget(); setObject(cardInputWidget); Upvote 0
Keith Flanagan said: What would be the best way to expose this CardIputWidget as a B4X View control Click to expand... From the wrapper, something like: Java: Copy CardInputWidget cardInputWidget = new CardInputWidget(); setObject(cardInputWidget);