天道酬勤,学无止境

paypal-sandbox

智能支付按钮为 IPN 传递自定义变量(Smart Payment Buttons passing custom variable for IPN)

问题 我的网站上有两个 Smart 按钮用于按月订阅(运行良好)。 我成功收到 IPN 响应,其中支付信息已准备好添加到数据库中。 但是我需要通过 IPN 响应获取我的应用程序的 UserID。 如何使用智能支付按钮传递自定义变量,以便将其传递给 IPN(如果可能,用于购买交易和退款/取消交易?) 这是我的智能按钮代码: <div id="paypal_button"></div> <script src="https://www.paypal.com/sdk/js?client-id=[ID]...></script> <script> paypal.Buttons({ style:{ color:"blue", shape:"rect", label:"paypal", tagline:false }, createSubscription: function(data, actions) { return actions.subscription.create({'plan_id': 'P-02S33....'}); }, onApprove: function(data, actions) { alert('You have successfully created subscription ENTERPRISE' + data.subscriptionID); } })

2021-12-05 07:37:56    分类:技术分享    paypal-sandbox   paypal-ipn   paypal-subscriptions

无法为 paypal REST API 创建应用程序(Can't create app for paypal REST API)

问题 我已经登录到开发者网站,但是当我转到应用程序页面来创建我的应用程序时,我看到以下错误消息: Problem creating sandbox facilitator account [Error code: 2001] 当我查看沙箱帐户页面时,我看到那里有一个服务商帐户 (xxx-facilitator@xxxx.xxx) 当我单击“创建应用程序”按钮时,“沙盒开发者帐户”下拉列表为空,当我尝试创建应用程序时,我收到以下错误消息: We’re sorry, but something went wrong while creating the application. Please try again. 到目前为止,我已经: 创建了新的沙箱用户向贝宝的技术支持提交了一个查询(没有回应) 留了一天再试登录,退出... 回答1 我有同样的问题。 “沙盒开发者帐户”下拉框没有条目,尽管我之前已经设置了帐户 - 所以我无法创建应用程序。 经过一些反复试验,我终于找到了一种在 html select 中注入有效选项的方法,并最终成功创建了该应用程序。 就是这样: 登录您的 developer.paypal.com 个人资料并转到 Sandbox - Accounts。 只需使用 Firefox 中的 Firebug 或 Chrome 中的开发人员工具来检查来源:检查您的

2021-11-28 15:57:48    分类:技术分享    paypal   paypal-sandbox

Paypal SandBox IPN History

I use paypal for my payments. For verification i use IPN. Can i review my INP History in the Paypal Sandbox? At the documentation i see Instant Payment Notification History in the History tab. (https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_admin_IPNOperations) After googling i see "IPN History" chapter in the History tab (http://goo.gl/myZKF) At the real sandbox i don't see any IPN history. Thank you.

2021-11-28 15:40:34    分类:问答    paypal   paypal-ipn   paypal-sandbox

贝宝沙箱无法处理请求(paypal sandbox unable to process request)

问题 我一直在工作和测试贝宝使用的沙箱系统。 令人困惑,我创建了一些测试帐户。 目前我已经从我的网站创建了一个表单。 “立即购买”按钮。 它的工作原理应该是: <form id="checkout" target="paypal" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" value="myemail@myaddres.com" name="business"> <input type="hidden" value="Order" name="item_name"> <input type="hidden" value="1000" name="amount"> <input type="hidden" value="50" name="tax"> <input type="hidden" value="SEK" name="currency_code"> <input type="hidden" value="namehere" name="first_name"> <input type="hidden" value="lastnamehere" name="last_name"> <input type="hidden" value=

2021-11-27 06:14:29    分类:技术分享    paypal   sandbox   payment   paypal-sandbox

Paypal Adaptive Payment in Java with spring boot

Hello I am implementing adaptive payment in pay-pal with spring boot. But i am getting an error when i hit api in postman. Error is : com.paypal.exception.MissingCredentialException: No API accounts have been configured in application properties. Please help what i am doing wrong. Here is Service Class package com.AdaptivePayment.Service; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.stereotype.Service; import com.paypal.exception

2021-11-27 03:14:58    分类:问答    spring-boot   paypal-sandbox   paypal-adaptive-payments

paypal sandbox merchant account error

I have a website that I'm trying to hook paypal up to with a php script. php builds the query string and then submits to https://www.paypal.com/cgi-bin/webscr with the query string attached. I can verify that this works fine. I haven't processed a payment but it directs to PayPal with the correct quantities and prices, etc. However when I change to https://www.sandbox.paypal.com/cgi-bin/webscr I get an error when I try to process that says there was a problem with the merchants PayPal account. I have created several test accounts on PayPal sandbox but from what I can tell looking around it

2021-11-27 00:58:35    分类:问答    paypal   paypal-sandbox

How to set mixture of recurring and one time payment in Paypal

I'm using Paypal REST API to charge my subscriptions. My transaction includes a mixture of one-time purchase and recurring payment. One time purchase will charge a user amount X, and recurring payment should create recurring profile which will annually charge a user with amount Y. Here is what I have. First I call SetExpressCheckoutPayment with the following parameters: $orderParams = array( 'PAYMENTREQUEST_0_AMT' => "10", 'PAYMENTREQUEST_0_CURRENCYCODE' => 'GBP', 'PAYMENTREQUEST_0_ITEMAMT' => "10", 'LOGOIMG'=>"http://mywebsite.com/a.jpg", "MAXAMT"=>"100", "NOSHIPPING"=>"1", "ALLOWNOTE"=>"0",

2021-11-26 17:17:56    分类:问答    php   paypal   paypal-ipn   paypal-sandbox

Paypal Developer/Sandbox 新界面:无法使用测试账户登录(Paypal Developer/Sandbox new interface: cannot login with test accounts)

问题 我在使用我的测试帐户登录 sandbox.paypal.com 时遇到问题,因为他们已经更改了界面。 我被迫在 developer.paypal.com(现在是测试版)上创建一个新帐户并导入我的旧测试帐户。 我已经这样做了,但没有一个帐户可以工作了! 我无法使用我的商家帐户登录沙箱,并且无法进行购买。 有人有同样的问题吗? 回答1 一旦您使用您的 PayPal 凭证验证并登录,您就可以导入您的个人沙箱配置文件。 在登录特定沙箱帐户之前,您必须清除浏览器缓存和 cookie。 我在 Chrome 和 Firefox 上都遇到了同样的问题。 清除缓存/cookies 后,我可以毫无问题地登录沙箱配置文件。 如果你不清除C&C,你会收到以下错误: “此沙盒电子邮件地址不可用。请输入另一个电子邮件地址。” 谢谢,

2021-11-26 12:54:48    分类:技术分享    paypal   paypal-sandbox

How to implement paypal without using webview or browser in flutter?

I am trying to implement paypal in my flutter app without using webview or browser. I have tried "flutter_braintree" and "braintree_payment" packages for flutter. But both of this packages redirect to the web browser. So is there any way to implement paypal in flutter like the native android way. Or can I implement it on native android and build it with flutter? If the answer yes, then how am I gonna achieve that?

2021-11-26 01:37:31    分类:问答    android   flutter   paypal   paypal-sandbox   payment

Paypal IPNs not sending/being received on sandbox

I'm trying to use Paypal IPNs on the sandbox. I have a form that submits an express checkout: <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick" /> <input type="hidden" name="business" value="my-sandbox-merchant-account@test.com" /> <input type="hidden" name="item_name" value="Item 3" /> <input type="hidden" name="item_number" value="3" /> <input type="hidden" name="amount" value="5.00" /> <input type="hidden" name="shipping" value="0.00" /> <input type="hidden" name="no_shipping" value="1" /> <input type="hidden" name=

2021-11-26 01:01:35    分类:问答    paypal   paypal-sandbox   paypal-ipn