在Braintree付款中搜索客户的有效订阅 [英] search for active subscription for a customer in Braintree payments

查看:111
本文介绍了在Braintree付款中搜索客户的有效订阅的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站中,我正在使用Braintree付款网关进行卡支付和具有自动续订的PayPal交易.

In my website, I am using Braintree payment gateway for both card payments and PayPal transactions with auto renewal subscriptions.

我正在创建客户并将卡存储在Braintree保管库中以进行自动续订. 还要为该客户的PayPal交易使用相同的客户ID(如果发生)

i am creating the customer and storing the card in Braintree vault for auto renewal.. also using the same customer id for that customer PayPal transactions (if happened)

在进行付款之前,只需要检查是否已激活自动续订自动续订,并且到期日期仍为订阅有效订阅即可.

before proceeding the payment, just need to check for active subscription, for both auto renewable and auto renewal cancelled and still expiration date is due subscription existence.

  • 是否有任何预定义的方法可以使用 .net 代码验证该方法?
  • is there any predefined methods for verifying that one with .net code?

我是新来的付款人,有没有推荐的git项目?这样会很有帮助

I am new to payments, is there any recommended git projects available? so that it would helps a lot

提前谢谢.

推荐答案

听起来您想查找给定客户的有效订阅. 根据此答案,客户有一个credit_cards数组,每张信用卡都有一个subscriptions数组."

It sounds like you want to find active subscriptions for a given customer. According to this answer, "customers have a credit_cards array, and each credit card has a subscriptions array."

请记住,您可以遍历每张信用卡以获取每个订阅.拥有所有客户的订阅后,您可以检查其状态.这是.NET的相关Braintree开发人员文档链接:

With that in mind, you can iterate through each credit card to grab each subscription. Once you have all the customer's subscriptions you can check their status. Here are the relevant Braintree Developer Docs links for .NET:

这篇关于在Braintree付款中搜索客户的有效订阅的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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