我无法在Android Studio中找到付费标签库文件导入模块。
有没有人有源或链接?我希望在付款方式中使用它here是文档,但它没有示例代码。
答案 0 :(得分:0)
Intent in = new Intent(MainActivity.this, PayTabActivity.class);
in.putExtra("pt_merchant_email", "merchant@myapp.com"); //this a demo account for
in.putExtra("pt_secret_key", "secret");//Add your Secret Key Here
in.putExtra("pt_transaction_title", "Mr. John Doe");
in.putExtra("pt_amount", "1");
in.putExtra("pt_currency_code", "USD"); //Use Standard 3 character ISO
in.putExtra("pt_shared_prefs_name", "myapp_shared");
in.putExtra("pt_customer_email", "test@example.com");
in.putExtra("pt_customer_phone_number", "0097300001");
in.putExtra("pt_order_id", "1234567");
in.putExtra("pt_product_name", "Samsung Galaxy S6");
in.putExtra("pt_timeout_in_seconds", "300"); //Optional
in.putExtra("pt_address_billing", "Flat 1,Building 123, Road 2345");
in.putExtra("pt_city_billing", "Juffair");
in.putExtra("pt_state_billing", "Manama");
in.putExtra("pt_country_billing", "Bahrain");
in.putExtra("pt_postal_code_billing", "00973"); //Put Country Phone code if Postal
in.putExtra("pt_address_shipping", "Flat 1,Building 123, Road 2345");
in.putExtra("pt_city_shipping", "Juffair");
in.putExtra("pt_state_shipping", "Manama");
in.putExtra("pt_country_shipping", "Bahrain");
in.putExtra("pt_postal_code_shipping", "00973"); //Put Country Phone code if Postal
int requestCode = 0;
startActivityForResult(in, requestCode);
SDK链接:https://dev.paytabs.com/wp-content/uploads/paytabs-android-sdk-v2.5.zip
示例链接:https://dev.paytabs.com/wp-content/uploads/files/Android_Test_App.zip