我正在尝试使用PayPal提供的定期付款API.我有一个我无法直接解决的场景.它是这样的.
我们有一个网站,我们出售一些服务.现在,服务按用户许可证收费.用户可以在两者之间购买/取消用户许可.我们希望为客户提供定期结算选项.我们在此必须注意,金额可能会根据客户在该周期中使用的用户许可证数量而改变每个结算周期.
有什么方法可以使用PayPal定期付款API来实现这一点.
我已经根据Ryan Bates的railscast(http://railscasts.com/episodes/288-billing-with-stripe)成功构建了一个rails应用程序 - 然而,在railscast中他没有涵盖webhooks.我想知道在公共领域是否有任何好的例子来实现和使用webhook来管理已经创建的订阅计费.
任何想法/方向都会非常有用吗?
谢谢!
如果这是一个愚蠢的问题,请提前道歉.我确实尝试过挖掘,但找不到答案.
我正在尝试设置链式支付(在沙箱环境中),但是收到错误520009(帐户受限制).尝试了几个电子邮件地址,他们都给了我这个错误.电子邮件地址没有在Paypal注册,但据我所知这不应该是一个问题,因为自适应支付模块不要求接收者提前拥有PayPal账户(尽管他们需要账户来实际获得这笔钱, 当然).
我究竟做错了什么?我确实将付款人设置为EACHRECEIVER(如某些线程所示),但错误仍然存在.
这是我得到的:错误代码:520009错误消息:帐户someone1@gmail.com受限制
这是我的代码:
// Config
$endpoint = trim("https://svcs.sandbox.paypal.com/AdaptivePayments/Pay");
$API_UserName = "MY_USERNAME_FROM_SANDBOX";
$API_Password = "MY_PASSWORD_FROM_SANDBOX";
$API_Signature = "MY_SIGNATURE_FROM_SANDBOX";
$API_AppID = "APP-80W284485P519543T";
$API_RequestFormat = "NV";
$API_ResponseFormat = "NV";
// Create request payload with minimum required parameters
$bodyparams = array (
"requestEnvelope.errorLanguage" => "en_US",
"actionType" => "PAY_PRIMARY",
"cancelUrl" => 'http://www.beta.com/cancel',
"returnUrl" => 'http://www.beta.com/return',
"currencyCode" => 'USD',
"feesPayer" => "EACHRECEIVER",
"actionType" => "PAY_PRIMARY",
"receiverList.receiver[0].email" => 'someone1@gmail.com',
"receiverList.receiver[0].amount" => '10',
"receiverList.receiver[0].primary" => 'true',
"receiverList.receiver[1].email" => 'someone2@gmail.com',
"receiverList.receiver[1].amount" => '5',
"receiverList.receiver[1].primary" => 'false', …Run Code Online (Sandbox Code Playgroud) 我一直在工作和测试沙盒系统paypal使用.
它一直令人困惑,我已经创建了一些测试帐户.目前我已经从我的网站创建了一个表单."立即购买"按钮.
它的工作原理应该是:
<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="emailaddressaere" name="email">
<input type="hidden" value="addresshere" name="address1">
<input type="hidden" value="cityhere" name="city">
<input type="hidden" value="SE" name="country">
<input type="hidden" value="0" name="address_override">
<input type="hidden" value="http://www.mydomain.com/thanks" name="return">
<input type="hidden" value="http://www.mydomain.com/checkout" name="cancel_return">
<input type="hidden" value="uniqueid" name="invoice">
<input type="hidden" value="sale" name="paymentaction">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="charset" value="utf-8"> …Run Code Online (Sandbox Code Playgroud) 我必须在asp.net中实现ccavenue支付网关.
我在互联网上搜索了很多,但无法找到asp.net的单一工作示例.
我也尝试过网站上的示例,但它没有记录,也没有正确.我不知道如何在asp.net中使用此服务.
现在我在我的网站上有3种类型的订阅:
此外,我有很少的附加组件,用户可以添加到他的订阅,例如:
订阅:加
总计= 15 $ + 10 $ + 10 $ = 35 $.
用户应该可以在结算期间添加/删除功能或切换到其他计划.你们能告诉我如何使用Stripe管理这些功能吗?
在我的网络应用程序(PHP)中,用户应该能够连接他的paypal帐户,每次他从我们的目录中销售产品时,我们都会向他收取价格.由于用户可能会销售很多产品,我想自动制作付款部分,因此他不必批准每笔交易.
不幸的是,我找不到使用Paypal SDK做到这一点的方法.
目前,该应用正在使用OAuth流程,因此用户被重定向到Paypal,我从那里获得了access_token.
问题:为用户提供access_token如何在没有Paypal重定向的情况下创建(后台)付款?
谢谢
在 Woocommerce 中,要向客户发送短信付款信息,我需要在成功付款后激活触发器。
但我没有找到任何钩子来做
这是我的插件代码:
if ( isset( $this->options['wc_notify_customer_payment_successful_enable'] ) ) {
add_action( '####Action to be used here#######', array( &$this, 'successful_payment_notification_client' ) );
}
/* WooCommerce Successful payment notification client
*
* @param $order_id
*/
public function successful_payment_notification_client ( $order_id ) {
// Check the mobile field is empty
if ( empty( $_REQUEST['mobile'] ) ) {
return;
}
$order = new WC_Order( $order_id );
$this->sms->to = array( $_REQUEST['mobile'] );
$template_vars = array(
'%order_id%' => $order_id,
'%order_number%' => $order->get_order_number(),
'%status%' => …Run Code Online (Sandbox Code Playgroud) 我的问题:
目前,在我的项目中,要求将付款保持在未捕获状态超过 7 天,这是 stripe 的最长期限。
我想到的自动取款机:
我发现可以通过记住客户的卡(当然使用 stripe 的 api)、创建未捕获的付款、在 7 天期限结束时退款并再次创建它直到我们选择最终捕获它来完成。
我猜这个“黑客”每次付款只会使用一次,因为通常我们必须将付款保留大约 10 天。
问题:
除了客户会看到第二次付款之外,还有其他陷阱吗?
还有其他方法可以处理这个问题吗?
提前致谢 :)
我想使用万事达卡支付网关系统将支付集成到我的网站中。我使用托管会话方法进行集成。我关注万事达卡主办的会议
我的 JavaScript 代码是
<script src="https://network.gateway.mastercard.com/form/version/51/merchant/
**<testmerchantID>**/session.js"></script>
<script>
if (self === top) {
var antiClickjack = document.getElementById("antiClickjack");
antiClickjack.parentNode.removeChild(antiClickjack);
} else {
top.location = self.location;
}
PaymentSession.configure({
fields: {
// ATTACH HOSTED FIELDS TO YOUR PAYMENT PAGE FOR A CREDIT CARD
card: {
number: "#card-number",
securityCode: "#security-code",
expiryMonth: "#expiry-month",
expiryYear: "#expiry-year"
}
},
session: 'abc456',
//SPECIFY YOUR MITIGATION OPTION HERE
frameEmbeddingMitigation: ["javascript"],
callbacks: {
initialized: function(response) {
//console.log(response.status);
},
formSessionUpdate: function(response) {
// HANDLE RESPONSE FOR UPDATE SESSION
if (response.status) …Run Code Online (Sandbox Code Playgroud)