我如何整合贝宝支付的用户点击一个按钮时? [英] How can I integrate Paypal to payout users when a button is clicked?

查看:155
本文介绍了我如何整合贝宝支付的用户点击一个按钮时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这听起来有点怪,但我在整理我的应用程序,将支付用户的最后阶段。

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.

我所接触的谷歌结帐和Paypal至今和Paypal建议个人支付可以集成在我的情况,并送我的贝宝Android的API文档。该文档本身是非常有用的,但没有描述这样的,我在寻找一个场景。任何线索,如何将这样的功能。我AP preciate任何人都愿意帮助我。

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.

推荐答案

哇!现在大的挑战。贝宝的技术支持和我下面的对话线程:他们不支持此功能,但所以我想我有东西在我手中尚未完成的

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下午1时05
我有一种感觉,这个功能不支持像PayPal或谷歌结帐的任何供应商,因为它是支付处理的另一种方式。它的周围从来没有在一个App做过的事情。

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?

感谢您的帮助。

响应(维韦克)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.

不过,你的想法是非常耐人寻味,这将是巨大的,如果你能给你正在努力实现businesswise什么更多的信息,我可以升级这一点,看看它是否有资格获得将来的功能要求。

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和类型个人支付该建议是由贝宝技术代表WRT我的最后一个问题。

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.

下面是code段。

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 这是正确的。

Answer #1 That is CORRECT.

您的问题#2

如果是这样的话,你为什么不能设置以上的Andr​​oid用户和收件人和您登录并寄钱。 但如果我是正确的,你想把上述的Andr​​oid用户启动的操作,并拿钱从您的帐户。从技术上讲,你想做的事找回的钱,而不是把钱在某种程度上,这是真的吗?

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

响应(维韦克)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:

问:当测试code。在贝宝沙箱环境中,我们注意到,每次该按钮被点击收件人和金额设定为我们想要的,但它带来了登录界面。 *是的,你编程设置在code量和收件人。它要求登录是事务的发送者。可否请您确认您正在尝试做的哪个按钮,或操作?

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?

有商务的Andr​​oid应用程序的全部目的

The whole purpose of having an Android app for business

您曾提到,你想从Android设备发送的用户(Android应用程序的用户)的钱自己正在使用的用户和资金来自您的帐户。这是真的? 如果是这样的话,你为什么不能设置以上的Andr​​oid用户和收件人和您登录并寄钱。 但如果我是正确的,你想把上述的Andr​​oid用户启动的操作,并拿钱从您的帐户。从技术上讲,你想做的事找回的钱,而不是把钱在某种程度上,这是真的吗?

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分

我们目前正在测试贝宝集成功能为我们的Andr​​oid应用程序,我们希望用户使用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.

我们已经成立了沙盒环境,以下是code,我们都习惯了。

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.

当测试code。在贝宝沙箱环境中,我们注意到,每次该按钮被点击收件人和金额设定为我们想要的,但它带来了登录界面。我不知道我们如何才能使这项工作?请记住在这种情况下,我们要preauthorize收件人通过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?

如果这不起作用有没有我们可以使用贝宝支付使用他们的电子邮件地址的Andr​​oid应用程序的用户的任何其他方式。再次,这是不正常的结账情形的人检查了支付业务。

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.

这篇关于我如何整合贝宝支付的用户点击一个按钮时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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