单击按钮时如何将 Paypal 集成到付款用户?

发布于 2024-09-29 14:24:44 字数 302 浏览 1 评论 0原文

这可能听起来有点奇怪,但我正处于完成向用户付费的应用程序的最后阶段。

该应用程序中有一项活动,当用户使用该应用程序时,金钱就会不断累积。我在该活动中有一个名为“兑现”的按钮,当用户达到一定金额时可以单击该按钮,并且应该让用户提取从应用程序中累积的资金。

到目前为止,我已经联系了 Google Checkout 和 Paypal,Paypal 建议可以将个人付款集成到我的案例中,并向我发送了 Paypal for Android API 文档。该文档本身非常有用,但没有描述我正在寻找的这种场景。有关如何集成此类功能的任何线索。我很感激任何愿意帮助我的人。

It might sound a little odd but I am in the final phases of finishing up my app that would pay users.

There is an activity in the app where as and when the users use the app, money keeps accruing. I have a button in that activity called Cash Out which when the user reaches a certain amount can be clicked and is supposed to let the users take the money accrued from the app.

I have contacted Google Checkout and Paypal so far and Paypal suggested personal payments can be integrated in my case and sent me the Paypal for Android API doc. The doc itself is very useful but does not describe this kind of a scenario that I am looking for. Any clues how to integrate such a functionality. I appreciate anyone willing to help me out.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云裳 2024-10-06 14:24:44

哇!!现在是一个巨大的挑战。 Paypal 技术支持和我的对话主题如下:他们还不支持此功能。所以我想我手里还有一些尚未完成的东西。

客户2010年11月3日下午1:05
我有一种感觉,PayPal 或 Google Checkout 等任何供应商都不支持此功能,因为它是相反的付款处理方式,这在应用程序中从未做过。

所以让我问你这个问题,因为这是应用程序中的一个主要功能,我们必须尽快做到这一点,这就是问题所在。

我们有用户的电子邮件地址数据以及需要向每个用户发送多少现金。我们可以从服务器运行批处理作业,并将包含用户电子邮件地址和金额的数据发送到 Paypal 来处理付款吗?如果是,请告诉我这怎么可能?

感谢您的帮助。

回复 (Vivek) 11/03/2010 12:42 PM
你好 ,
正如“MPL 开发人员指南和参考 - Android 操作系统版本”(包含库包中的文档)第 32 页中提到的,它仅与费​​用有关。

不幸的是,目前无法在功能上实现能够从自己的设备发起接收交易并能够通过应用程序接收资金的要求。

然而,你的想法非常发人深省,如果你能提供更多关于你想要实现的商业目标的信息,那就太好了,我可以升级这个想法,看看它是否符合未来的功能请求。

谢谢,
Vivek

客户 () 11/03/2010 10:57 AM
顺便说一句,我们正在使用 Android 移动支付库并输入个人支付,这是 Paypal 技术代表针对我的最后一个问题建议的。

这是代码片段。

CheckoutButton launchPayPalButton = ppObj.getPaymentButton(PayPal.BUTTON_278x43, this, PayPal.PAYMENT_TYPE_PERSONAL);

谢谢。

客户 () 11/03/2010 10:53 AM
你的问题#1
您曾提到您想从用户自己正在使用的 Android 设备向用户(Android 应用程序的用户)发送资金,并且资金来自您的帐户。这是真的吗? -

答案#1
这是正确的。

您的问题#2

“如果是这种情况,为什么您不能设置上述Android用户和收件人并登录并汇款。
但如果我是对的,您希望上述 Android 用户启动操作并从您的帐户中提取资金。从技术上讲,您想要取回钱,而不是以某种方式发送钱,这是真的吗?”

我的答案#2

由于 Android 应用程序用户从他的手机应用程序发起交易,因此我当时无法从所以您的理解是正确的,我们希望用户启动操作并从我们的帐户中提取资金,我们将设置以编程方式从应用程序获取资金的金额和电子邮件地址。
所以基本上是的,我们希望应用程序用户从我们的帐户中取回资金而不是向我们付款。

回复 (Vivek) 11/03/2010 10:46 AM
你好 ,
感谢您与我们联系,我们很高兴为您提供帮助。

我目前正在研究您的问题,并将尽快给您更新。同时,我对您的问题有一些澄清:

问:在 Paypal Sandbox 环境中测试代码时,我们注意到每次单击按钮时,收件人和金额都会按照我们的要求设置,但会弹出登录屏幕。
* 是的,您可以通过编程方式在代码中设置金额和收件人。它要求的登录名是交易的发送者。您能否确认您正在尝试执行哪个按钮或操作?

拥有 Android 商业应用程序的全部目的

您曾提到,您希望从用户自己正在使用的 Android 设备向用户(Android 应用程序的用户)发送资金,而这笔资金来自您的帐户。这是真的吗?
如果是这样的话,为什么你不能设置上面的android用户和收件人并登录并汇款。
但如果我是对的,您希望上述 Android 用户启动操作并从您的帐户中提取资金。从技术上讲,您想要取回资金而不是以某种方式发送资金,这是真的吗?

请澄清。

谢谢,
Vivek

客户 () 11/03/2010 08:19 AM
您好,

我们目前正在测试 Android 应用程序的 Paypal 集成功能,我们希望用户使用 paypal 从我们的帐户接收应计现金。

我们已经设置了沙箱环境,以下是我们使用的代码。

问题就在这里。

一旦应用程序的用户单击 Paypal 按钮,我们希望以编程方式设置应用程序中的金额和收件人电子邮件,以确定可以从我们的银行帐户中提取的人员和金额。

newPayment.setAmount("10.00"); //lets say 10USD.
newPayment.setRecipient(""); //sandbox email setup as a personal account.

在 Paypal Sandbox 环境中测试代码时,我们注意到每次单击按钮时,收件人和金额都会按照我们的要求设置,但会弹出登录屏幕。我不明白我们怎样才能做到这一点?请记住,在这种情况下,我们希望预先授权收件人通过贝宝结帐按钮从我们的帐户中提取应计款项,而不是相反。

这基本上是一种个人支付情况,我们希望向用户汇款,而不是从应用程序的用户那里收钱。请让我们知道我们的问题可能的解决方案是什么?

如果这不起作用,我们是否可以通过其他方式使用 Paypal 通过 Android 应用程序用户的电子邮件地址向其付款。这又不是结账人向商家付款的正常结账情况。

PayPal ppObj = PayPal.initWithAppID(this.getBaseContext(), "APP-80W284485P519543T", PayPal.ENV_SANDBOX);
CheckoutButton launchPayPalButton = ppObj.getPaymentButton(PayPal.BUTTON_278x43, this, PayPal.PAYMENT_TYPE_PERSONAL);
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);
params.addRule(RelativeLayout.BELOW, R.id.refresh);
params.bottomMargin = 10;
launchPayPalButton.setLayoutParams(params);
launchPayPalButton.setOnClickListener(new View.OnClickListener() {


@Override
public void onClick(View v) {
// TODO Auto-generated method stub
PayPalPayment newPayment = new PayPalPayment();
newPayment.setAmount("10.00");
newPayment.setCurrency("USD");
newPayment.setRecipient("");
newPayment.setTax("0.00");
newPayment.setShipping("0.00");
newPayment.setItemDescription("Your Payment");
newPayment.setSenderEmail("");
newPayment.setMerchantName("My Test Store");
Intent paypalIntent = new Intent(getApplicationContext(), PayPalActivity.class);
paypalIntent.putExtra(PayPalActivity.EXTRA_PAYMENT_INFO, newPayment);
UrMoney.this.startActivityForResult(paypalIntent, 1);
}

});
((RelativeLayout)findViewById(R.id.urmoney1)).addView(launchPayPalButton);

感谢您的帮助。

Wow!! Big challenge now. Paypal Technical Support and my conversation thread below: They don't support this functionality yet. So I guess I have something in my hand that has not been done.

Customer 11/03/2010 01:05 PM
I had a feeling that this feature is not supported by any vendor like PayPal or Google Checkout since it is payment processing the other way round which has never been done before in an App.

So let me ask you this since this is a major functionality in the app and we have to do this ASAP here is the question.

We have data of the users' email address and how much cash needs to be sent to each one of them. Can we run a batch job from the server and send data to Paypal with the User email addresses and amounts to process the payments. If yes please let me know how is that possible?

Thanks for your help.

Response (Vivek) 11/03/2010 12:42 PM
Hi ,
As mentioned in the "MPL Developer Guide and Reference - Android OS Edition" (that comes in Documentation with Library package), Page 32, which has only to do with Fees.

Unfortunately, right now it is not possible to functionally achieve the requirement of being able to initiate receive transaction from ones own device and being able to receive money via the app.

However, your idea is very thought provoking and it would be great if you could give more information on businesswise what you are trying to achieve and I can escalate this and see if it qualifies for future feature request.

Thanks,
Vivek

Customer () 11/03/2010 10:57 AM
By the way we are using the Mobile Payments Library for Android and Type Personal Payments which was suggested by a Paypal Tech Rep w.r.t my last question.

Here is the code snippet.

CheckoutButton launchPayPalButton = ppObj.getPaymentButton(PayPal.BUTTON_278x43, this, PayPal.PAYMENT_TYPE_PERSONAL);

Thanks.

Customer () 11/03/2010 10:53 AM
Your question#1
You had mentioned that you want to send user (user of the android app) the money from the Android device the user himself is using and the money comes from the your account. Is this true? -

Answer #1
That is CORRECT.

Your Question # 2

"If this is the case, why cannot you set the above android user and recipient and you login and send money.
But if I am right you want the above android user to initiate the operation and to take money from your account. Technically speaking, you want to do retrieve money and not a send money in some way, is this true?"

My Answer # 2

Since the Android App user initiates the transaction from his phone app there is no way I can login at that time from his phone. So your understanding is CORRECT that we want the user to initiate the operation and to take money from our account and we will set how much and what email address gets it programmatically from the App.
So basically YES we want the App user to retrieve money from our account and not pay us.

Response (Vivek) 11/03/2010 10:46 AM
Hi ,
Thank you for contacting us and we are glad to be of assistance to you.

I am currently researching on your question and will give you an update ASAP. Meanwhile, I have a few clarifications on your question:

Q: When testing the code in Paypal Sandbox environment we notice that everytime the button is clicked the recipient and the amount is set as we want but it brings up the login screen.
* Yes, you set the amount and recipient in the code programmatically. The login it asks for is the sender of the transaction. Can you please verify which button or operation you are trying to do?

The whole purpose of having an Android app for business

You had mentioned that you want to send user (user of the android app) the money from the Android device the user himself is using and the money comes from the your account. Is this true?
If this is the case, why cannot you set the above android user and recipient and you login and send money.
But if I am right you want the above android user to initiate the operation and to take money from your account. Technically speaking, you want to do retrieve money and not a send money in some way, is this true?

Please clarify.

Thanks,
Vivek

Customer () 11/03/2010 08:19 AM
Hi,

We are currently testing Paypal Integration functionality for our Android Application where we want Users to use paypal to receive accrued cash from our account.

We have set up the Sandbox environment and following is the code we have used.

Here is the problem.

Once the user of the App clicks the Paypal button we want to programatically set the amount and the recipient email from the App as to who and how much can be taken out from our bank account.

newPayment.setAmount("10.00"); //lets say 10USD.
newPayment.setRecipient(""); //sandbox email setup as a personal account.

When testing the code in Paypal Sandbox environment we notice that everytime the button is clicked the recipient and the amount is set as we want but it brings up the login screen. I dont understand how can we make this work? Remember in this case we want to preauthorize the recipient to take accrued money from our account through paypal checkout button and not the other way round.

This is basically a personal payment situation where we want to send money to the user and not receive from the user of the App. Please let us know what is a possible resolution to our problem?

If this does not work is there any other way we can use Paypal to pay Android App Users using their email address. Once again this is not a normal checkout situation where the person checking out pays the business.

PayPal ppObj = PayPal.initWithAppID(this.getBaseContext(), "APP-80W284485P519543T", PayPal.ENV_SANDBOX);
CheckoutButton launchPayPalButton = ppObj.getPaymentButton(PayPal.BUTTON_278x43, this, PayPal.PAYMENT_TYPE_PERSONAL);
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);
params.addRule(RelativeLayout.BELOW, R.id.refresh);
params.bottomMargin = 10;
launchPayPalButton.setLayoutParams(params);
launchPayPalButton.setOnClickListener(new View.OnClickListener() {


@Override
public void onClick(View v) {
// TODO Auto-generated method stub
PayPalPayment newPayment = new PayPalPayment();
newPayment.setAmount("10.00");
newPayment.setCurrency("USD");
newPayment.setRecipient("");
newPayment.setTax("0.00");
newPayment.setShipping("0.00");
newPayment.setItemDescription("Your Payment");
newPayment.setSenderEmail("");
newPayment.setMerchantName("My Test Store");
Intent paypalIntent = new Intent(getApplicationContext(), PayPalActivity.class);
paypalIntent.putExtra(PayPalActivity.EXTRA_PAYMENT_INFO, newPayment);
UrMoney.this.startActivityForResult(paypalIntent, 1);
}

});
((RelativeLayout)findViewById(R.id.urmoney1)).addView(launchPayPalButton);

Thanks for the help.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文