I want to use subscriptions as a business model (https://developers.facebook.com/docs/payments/subscriptions/) but for onetime payment (Upgrading from lite to full version). The problem is that the metadata“fbpayment:billing_period” in fbpayment:subscription object takes "1 month" as default while the user in my app need to pay one time only to upgrade his version .
Also the subscription dialog shows the price of subscription per month which is not real in my case.
My aim for using subscriptions is to use Graph API for querying the subscription status and know who is already subscriber to give him access for specific materials . The regular payment follow in this tutorial: https://developers.facebook.com/docs/howtos/payments/paymentflow, doesn't tell how to retrieval these records .
My question is that how to use subscriptions for onetime payment ?
Related
I'm currently building a Flutter application with an unusual subscription model. The idea is that depending on how the user uses the app, they would seamlessly be charged a different amount of money each month. I plan to use PayPal, and I've looked into their REST API, this is what I found: https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#definition-agreement_details
In this API endpoint, I'm assuming I can setup a Billing Agreement for each user of a specific amount_range, where once the user agrees to the payment, I'd be allowed to seamlessly charge each user a varying amount, within that range.
Am I correct in my conclusion?
Would this be the best approach?
if not, can you point me in the right direction for how to achieve what I'm trying to do?
I do not want to use the deprecated API. it's very important to be using REST API.
Thank you very much.
The Billing Agreement API you link to is deprecated.
Using the current PayPal Subscriptions, if you create a unique Plan for each subscriber, you can update that Plan > 10 days before their next billing date, and they will receive an email notification of the new amount.
You can use webhooks to keep track of active subscriptions and the last time you've been successfully paid for one.
If you need an internal ID for reconciliation, set the parameter custom_id when you first create the subscription; its value will be returned in webhook events for that subscription.
I would like to ask you about regular payment in paypal using billing plans. I use the PHP library from paypal (REST API) to create billing plans and agreement for users but I have some problems:
I have two plans: STANDARD and PRO. What when the user buys a standard plan and after some time will be want to switch to another? What with the old subscription? I don't see the option to cancel subscription via REST API. Should I create a personal billing plan for every user and in this case update this changes?
My plans include some additional parameters like: ,,How many people can use one account" - and this parameter influences on the final price. I don't know what I should do to get regular payments with flexible parameters.
Should I create a billing plan for every user and then create an agreement for this personal billing plan? What if user paid for 12 months and after 9 months will want to change some parameters - then I should upgrade price in the billing price (for stability in the next billing cycle) and to get this difference in plan costs I should create the normal payment by http://paypal.github.io/PayPal-PHP-SDK/sample/doc/payments/CreatePaymentUsingPayPal.html?
Cheers!
I am trying to create a subscription feature on my site. The users can subscribe to a number of projects (from 1 to 30). The price of a projet: 10$.
For subscribing I use a the Subscription button. I validate the payment using the IPN from paypal. All ok.
Now I want to give to users the possibility to change the number of projects they are subscribed for. But the paypal doesn't allow an increasing of payment more than 20%.
How can I change the user's subscription ? Should I remove his profile (not sure if I understant what it is) and create a new one ?
As you saw in the documentation, PayPal Subscriptions product doesn't seem like a good match for your requirements. You could have someone re-subscribe with new (higher) premium, but you probably would be better off with a product that allowed you to simply change the recurring amount billed.
PayPal has several other products that allow you to do that; hopefully one will meet your needs. In particular look at Recurring Payments & Reference Transactions (within PayPal's classic product suite) or Future Payments (within PayPal's RESTful API suite).
what is the proper way to upgrade a member with an ARB subscription.
We currently have members who sign up for monthly subscriptions during our sign up page... but they also are now attempting to upgrade once in the site (the page code does not work) but im trying to understand how to do this? Picture a match dot com type of site.
So i sign up on Jun 1st for $9.99/m (my card get charged on June 1st for $9.999)
Then i sign in on June 10th and try to upgrade for $29.99/m...........
Do i recharge them on the 10th? Or do i wait until July 1st and charge them $29.99/m
Is there a way to pro-rate the charges? We change our 3 tier pricing system often for testing so not sure if thats going to cause issues
The only reason i ask is this is a digital product in which users can abuse this privilege for that in between time then just cancel later. Thank you.
As of right now the only way to modify a subscription after it has begun is to cancel it and create a new one with the new amount. This means asking the customer for their credit card information again as ARB offers no way to store that information.
If you're going to allow users to change their subscriptions at any time you should consider using the CIM API which creates payment profiles so you don't have to ask the user for their credit card information again. Unfortunately CIM doesn't do recurring billing so you will have to manage subscription payments yourself. But it is more flexible then ARB when it comes to anything that isn't a basic subscription.
As far as changing subscription payments mid-cycle, you will need to pro-rate their first payment at the new tier. This can mean using the AIM API to make the difference in payment immediately or adding it to their next subscription payment. If you use ARB you can use a trial payment of one month for the pro-rated amount to make this easy to do).
I am writing a subscription where I need to provide users a month trial and charge $5.00 after trial is finished. I just found an amazing code to do that for me.
I also have setup paypalpro plus recurring payments
This is the link
https://github.com/krio/paypal-recurring-subscriptions
Questions:
1- How to make first month Free Trial?
2- I need to update users billing and update their payment in my database so it can calculate their subscription, how would i get to call from paypal to my files to update?
If you are using subscriptions and you are wanting to make the first month a free trial, you would need to pass over the following variables and values.
a1=0
p1=1
t1=M
You can find a description of all of the variables for subscriptions here.
If you are wanting to get updates back to your system/database to update your profiles and etc, you can use IPN to do this. Instant Payment Notification (IPN) is a message service that notifies you of events related to PayPal transactions. You can use it to automate back-office and administrative functions, such as fulfilling orders, tracking customers, and providing status and other information related to a transaction.