Payment Connector example activity
United States
Canada
Europe
Latin America
Use the following activity file with the sample code in Take a payment with Payment Connector. After importing the file into your project, be sure to replace the value of tools:context
with your app's main activity.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="package.name.MainActivity"
android:orientation="vertical"
android:gravity="center">
<TextView
android:text="Payment Connector Example"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/textView"
android:textStyle="bold"
android:textAlignment="center"
android:textSize="24sp"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/saleButton"
android:text="$10 Sale"
android:textAlignment="viewStart"
android:textSize="14sp"/>
</LinearLayout>
Updated about 1 year ago