Android Question Creating a Wrap for Stripe Payments

Keith Flanagan

Member
Licensed User
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:
    <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
    14.2 KB · Views: 287
Top