android - Paypal集成开发中的PaymentActivity.EXTRA_CLIENT_ID是什么

标签 android paypal payment-gateway paypal-sandbox

我在做什么 ,

我只是从 https://developer.paypal.com/webapps/developer/docs/integration/mobile/android-integration-guide/ 复制代码地点 。

Intent intent = new Intent(this, PaymentActivity.class);
intent.putExtra(PaymentActivity.EXTRA_PAYPAL_ENVIRONMENT, PaymentActivity.ENVIRONMENT_NO_NETWORK);
intent.putExtra(PaymentActivity.EXTRA_CLIENT_ID, "");
intent.putExtra(PaymentActivity.EXTRA_PAYER_ID, "");
intent.putExtra(PaymentActivity.EXTRA_RECEIVER_EMAIL, "");
intent.putExtra(PaymentActivity.EXTRA_PAYMENT, payment);

为此,我在 paypal 中创建了两个帐户,
一个用于 receiversandbox test account 第二名(因为我正在开发一个应用程序并使用这个 id)
所以,在实现这个之后,我得到了tushar.2april@gmail.com的帮助)。

收款人账号 :

tushar.pandey1991@gmail.com 的帮助下

沙盒账号 :

使用 tushar.2april@gmail.com 登录后我已经创建了企业和个人帐户。

iam2ndstan@yahoo.com (personal account)

tushar.2april-facilitator@gmail.com (business account)

问题,我面临的 :

我在什么基础上定义
:- PaymentActivity.EXTRA_CLIENT_ID:-``PaymentActivity.EXTRA_PAYER_IDPaymentActivity.EXTRA_RECEIVER_EMAIL : `tushar.pandey1991@gmail.com'
:-如果我尝试任何命中并尝试,之后我也会得到 Json
enter image description here
:-我将自动发送电子邮件(用于证明),否则我必须为其实现代码。

编辑部分:
07-01 17:35:09.068: I/dalvikvm(841): Could not find method android.app.Activity.getActionBar, referenced from method com.paypal.android.sdk.C.a
07-01 17:35:09.068: W/dalvikvm(841): VFY: unable to resolve virtual method 8: Landroid/app/Activity;.getActionBar ()Landroid/app/ActionBar;
07-01 17:35:17.608: I/dalvikvm(841): Could not find method android.view.View.setBackground, referenced from method com.paypal.android.sdk.af.a
07-01 17:35:17.608: W/dalvikvm(841): VFY: unable to resolve virtual method 311: Landroid/view/View;.setBackground (Landroid/graphics/drawable/Drawable;)V
07-01 17:35:36.598: W/KeyCharacterMap(841): No keyboard for id 0
07-01 17:35:36.598: W/KeyCharacterMap(841): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
07-01 17:35:49.257: I/dalvikvm(841): Jit: resizing JitTable from 512 to 1024
07-01 17:36:19.308: I/paymentExample(841): {
07-01 17:36:19.308: I/paymentExample(841):     "payment": {
07-01 17:36:19.308: I/paymentExample(841):         "short_description": "hipster jeans",
07-01 17:36:19.308: I/paymentExample(841):         "amount": "8.75",
07-01 17:36:19.308: I/paymentExample(841):         "currency_code": "USD"
07-01 17:36:19.308: I/paymentExample(841):     },
07-01 17:36:19.308: I/paymentExample(841):     "client": {
07-01 17:36:19.308: I/paymentExample(841):         "platform": "Android",
07-01 17:36:19.308: I/paymentExample(841):         "paypal_sdk_version": "1.0.2",
07-01 17:36:19.308: I/paymentExample(841):         "product_name": "PayPal Android SDK; ",
07-01 17:36:19.308: I/paymentExample(841):         "environment": "mock"
07-01 17:36:19.308: I/paymentExample(841):     },
07-01 17:36:19.308: I/paymentExample(841):     "proof_of_payment": {
07-01 17:36:19.308: I/paymentExample(841):         "adaptive_payment": {
07-01 17:36:19.308: I/paymentExample(841):             "timestamp": "2013-07-01T12:06:11+0000",
07-01 17:36:19.308: I/paymentExample(841):             "payment_exec_status": "COMPLETED",
07-01 17:36:19.308: I/paymentExample(841):             "app_id": "_FAKE_APPLICATION_ID_",
07-01 17:36:19.308: I/paymentExample(841):             "pay_key": "AP-70M68096ML426802W"
07-01 17:36:19.308: I/paymentExample(841):         }
07-01 17:36:19.308: I/paymentExample(841):     }
07-01 17:36:19.308: I/paymentExample(841): }

最佳答案

Intent intent = new Intent(this, PaymentActivity.class);
intent.putExtra(PaymentActivity.EXTRA_PAYPAL_ENVIRONMENT, PaymentActivity.ENVIRONMENT_SANDBOX);
intent.putExtra(PaymentActivity.EXTRA_CLIENT_ID, "");
intent.putExtra(PaymentActivity.EXTRA_PAYER_ID, "");
intent.putExtra(PaymentActivity.EXTRA_RECEIVER_EMAIL, ""); 
intent.putExtra(PaymentActivity.EXTRA_PAYMENT, payment);
EXTRA_PAYER_ID : 意思是,谁会从你的账户(买家,你的个人账户)中得到转账的钱。
EXTRA_CLIENT_ID :在您创建应用程序并在 Web 中注册时从网站生成。
EXTRA_RECEIVER_EMAIL : 意思是,你的商业账户。

enter image description here

关于android - Paypal集成开发中的PaymentActivity.EXTRA_CLIENT_ID是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17404968/

相关文章:

Android将动画缩放到指定大小

php - PayPal 自适应支付 - 产品名称

paypal - 为什么我不能在BlueSnap API中捕获PayPal交易?

android - Kotlin 创建一个 snackbar

java - 如何在Android中设置内容长度?

asp.net - Paypal 与快速结帐以获取 BillingAgreementID

Magento:付款完成后,paypal 标准付款未重定向到 Magento 成功页面

e-commerce - 推荐一个允许重复/增量支付的支付网关?

android - 刚刚更新到Android Studio 2.1 Beta,并卡住在build.gradle上

Paypal 订阅和税收