如何在Android Java中集成条带支付?
我需要为我的Java Android应用程序提供一个条带实现,但是对于Java中的服务器,我不知道如何使用node或php实现该服务器端,我在他们的文档中发现了一些东西: 但是,对服务器端的解释很差 到目前为止,我写的都是:如何在Android Java中集成条带支付?,java,android,stripe-payments,Java,Android,Stripe Payments,我需要为我的Java Android应用程序提供一个条带实现,但是对于Java中的服务器,我不知道如何使用node或php实现该服务器端,我在他们的文档中发现了一些东西: 但是,对服务器端的解释很差 到目前为止,我写的都是: <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/r
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="30dp"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context=".Checkout">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<ImageView
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/logo"
android:layout_gravity="center"
/>
<TextView
android:id="@+id/youhavetopay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="22sp"
android:textColor="@color/colorPrimary"
android:fontFamily="@font/muli_black"
android:layout_gravity="center"
/>
<com.stripe.android.view.CardInputWidget
android:id="@+id/cardInputWidget"
android:layout_marginTop="30dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/payButton"
android:layout_gravity="center"
android:layout_marginTop="20dp"
/>
</LinearLayout>
</ScrollView>
我有以下实现:
implementation "com.stripe:stripe-java:15.1.0"
implementation 'com.stripe:stripe-android:15.1.0'
implementation 'com.squareup.okhttp3:okhttp:4.4.0'
implementation 'com.google.code.gson:gson:2.8.6'
我真的不明白从他们的文件里我要做什么。我只想要一个付款按钮,从该卡付款,如果它被接受,在数据库上做一些事情。简单的付款
如果你能指引我,我将不胜感激!欢迎提供任何指导或建议。我曾试图从GitHub复制,但我看到许多来自导入的红线,我迷路了。
提前谢谢你 此示例包括示例和一个实现。您应该能够克隆存储库并按照适当的自述运行这些示例,并了解其工作原理。按照指南进行操作,如果您有更具体的问题,请提出这些问题 当然,您需要能够安装并构建android和java来运行它
implementation "com.stripe:stripe-java:15.1.0"
implementation 'com.stripe:stripe-android:15.1.0'
implementation 'com.squareup.okhttp3:okhttp:4.4.0'
implementation 'com.google.code.gson:gson:2.8.6'