单击按钮时,如何将 Paypal 集成到付款用户? [英] How can I integrate Paypal to payout users when a button is clicked?

查看:19
本文介绍了单击按钮时,如何将 Paypal 集成到付款用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

应用中有一项活动,当用户使用该应用时,钱会不断累积.我在该活动中有一个名为 Cash Out 的按钮,当用户达到一定金额时可以点击该按钮,并且应该让用户从应用程序中提取应计的钱.

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.

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

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.

推荐答案

哇!现在挑战很大.Paypal 技术支持和我的对话线程如下:他们尚不支持此功能.所以我想我手上有一些尚未完成的事情.

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.

客户 11/03/2010 01:05 PM
我有一种感觉,此功能不受任何供应商(如 PayPal 或 Google Checkout)的支持,因为它采用了相反的付款处理方式,而这在以前的应用中从未实现过.

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.

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

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?

感谢您的帮助.

回复 (Vivek) 11/03/2010 下午 12:42
你好 ,正如MPL 开发人员指南和参考 - Android 操作系统版"(随库包中的文档提供),第 32 页中所述,这仅与费用有关.

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.

谢谢,维维克

客户 () 11/03/2010 上午 10:57
顺便说一下,我们正在使用适用于 Android 的移动支付库,并输入 Paypal 技术代表在我上一个问题中提出的建议.

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.

这是代码片段.

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

谢谢.

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

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? -

答案#1这是正确的.

你的问题#2

"如果是这种情况,为什么不能设置上面的android用户和收款人,然后登录并汇款.但是,如果我是对的,您希望上述 android 用户启动操作并从您的帐户中取钱.从技术上讲,您希望以某种方式取钱而不是汇款,这是真的吗?"

"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?"

我的答案#2

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

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.

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

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:

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

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?

拥有适用于企业的 Android 应用的全部目的

The whole purpose of having an Android app for business

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

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?

请澄清.

谢谢,维维克

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

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

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.

问题来了.

应用程序的用户点击 Paypal 按钮后,我们希望以编程方式设置金额和来自应用程序的收件人电子邮件,以了解可以从我们的银行帐户中取出的金额和金额.

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.

在 Paypal Sandbox 环境中测试代码时,我们注意到每次单击按钮时,收件人和金额设置为我们想要的,但它会显示登录屏幕.我不明白我们如何才能做到这一点?请记住,在这种情况下,我们希望预授权收款人通过 paypal 结帐按钮从我们的帐户中提取应计款项,而不是相反.

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?

如果这不起作用,我们还有其他方法可以使用 Paypal 使用他们的电子邮件地址向 Android 应用程序用户付款.再一次,这不是正常的结账情况,即结账的人支付业务费用.

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);

感谢您的帮助.

这篇关于单击按钮时,如何将 Paypal 集成到付款用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆