paypal-subscriptions

PayPal REST API not returning recurring payment information in laraval

六眼飞鱼酱① 提交于 2021-01-29 09:56:18
问题 I am working on Paypal webhook (subscription) section to insert recurring payment information into the database. I have done coding based on the link "https://jslim.net/blog/2018/01/22/PayPal-Rest-API-with-Laravel-5-and-Angular/" but Paypal webhook always return “payment_status: Pending” on sandbox image and its not inserting recurring payment information into the database (insert option added in PayPalController - function webhooksPaymentSaleCompleted ). I think the problems related with

How to cancel the Paypal Billing Agreement using REST API with PHP code

吃可爱长大的小学妹 提交于 2021-01-27 06:52:42
问题 We have implemented "Billing Plan & Agreements" in our website as explained on http://paypal.github.io/PayPal-PHP-SDK/sample/. We have implemented weekly recurring payment and just want to cancel the billing agreement through the API. 回答1: You need to create a object of Agreement & AgreementStateDescriptor and using object of Agreement call the cancel() method. Below is the code example using PHP. $agreementId = "I-ABACAGAH"; $agreement = new Agreement(); $agreement->setId($agreementId);

PayPal Smart Subscribe server side

喜欢而已 提交于 2020-12-18 07:48:19
问题 hello in trying to convert my PayPal smart subscription button javascript into the server-side particularly on PHP. But I keep looking online and PayPal documentation still can't find and sources. It is similar to this PayPal demo of server-side. <div id="paypal-button-container"></div> <script src="https://www.paypal.com/sdk/js?client-id=Subscription_id&vault=true" data-sdk-integration-source="button-factory"></script> <script> paypal.Buttons({ style: { shape: 'rect', color: 'gold', layout:

How to activate a PayPal subscription?

情到浓时终转凉″ 提交于 2020-05-16 22:07:01
问题 I've implemented a recurring payments system using PayPal and the SmartButtons . The customer is able to create the subscription through my system, at the end of the checkout I get the subscription created: { "orderID": "3JR7411152833961C", "subscriptionID": "I-J8CHJ9UKB8JU", "facilitatorAccessToken": "A21AAElq71jrRrKHzaxxOeA4o7cOie83F_N-LKMZoAe2mhmaANy-a784yj9DUbSlQPIxtu_O-7XyzHWab23gKVgwhqK9Hjaow" } in order to activate the subscription and get the payment I need to execute it, so I wrote

How to activate a PayPal subscription?

ⅰ亾dé卋堺 提交于 2020-05-16 22:05:26
问题 I've implemented a recurring payments system using PayPal and the SmartButtons . The customer is able to create the subscription through my system, at the end of the checkout I get the subscription created: { "orderID": "3JR7411152833961C", "subscriptionID": "I-J8CHJ9UKB8JU", "facilitatorAccessToken": "A21AAElq71jrRrKHzaxxOeA4o7cOie83F_N-LKMZoAe2mhmaANy-a784yj9DUbSlQPIxtu_O-7XyzHWab23gKVgwhqK9Hjaow" } in order to activate the subscription and get the payment I need to execute it, so I wrote

How to activate a PayPal subscription?

核能气质少年 提交于 2020-05-16 22:05:14
问题 I've implemented a recurring payments system using PayPal and the SmartButtons . The customer is able to create the subscription through my system, at the end of the checkout I get the subscription created: { "orderID": "3JR7411152833961C", "subscriptionID": "I-J8CHJ9UKB8JU", "facilitatorAccessToken": "A21AAElq71jrRrKHzaxxOeA4o7cOie83F_N-LKMZoAe2mhmaANy-a784yj9DUbSlQPIxtu_O-7XyzHWab23gKVgwhqK9Hjaow" } in order to activate the subscription and get the payment I need to execute it, so I wrote

How to activate a PayPal subscription?

倖福魔咒の 提交于 2020-05-16 22:05:09
问题 I've implemented a recurring payments system using PayPal and the SmartButtons . The customer is able to create the subscription through my system, at the end of the checkout I get the subscription created: { "orderID": "3JR7411152833961C", "subscriptionID": "I-J8CHJ9UKB8JU", "facilitatorAccessToken": "A21AAElq71jrRrKHzaxxOeA4o7cOie83F_N-LKMZoAe2mhmaANy-a784yj9DUbSlQPIxtu_O-7XyzHWab23gKVgwhqK9Hjaow" } in order to activate the subscription and get the payment I need to execute it, so I wrote

Subscription Integration - Paypal using Nodejs and ReactJS

十年热恋 提交于 2020-03-25 14:24:52
问题 I am trying to integrate Paypal subscriptions into a ReactJS and NodeJS website. I have the following code on the client: window.paypal.Buttons({ createSubscription: function(data, actions) { return actions.subscription.create({ 'plan_id': 'P-5WJ4336006859111JLWVUDTQ' }); }, onCancel: function (data) { this.props.handleResponse({error: "The user cancelled"}); }, onApprove: function(data, actions) { alert('You have successfully created subscription ' + data.subscriptionID); } }).render('

Correct paypal IPN variable for suspended subscriptions

别等时光非礼了梦想. 提交于 2020-01-03 10:29:58
问题 If a paying monthly subscriber has a credit card that expires, and paypal failed three times in trying to get the funds, then they are "suspended" by paypal. I'm trying to update my PHP script so that the correct change will happen in the database in this situation. I've studied the paypal documentation and can't find a clear answer on what IPN variable I should be using once a user's account has been suspended. Does anyone know which of the following is the correct variable and value to use?

Paypal subscriptions IPN - problem with users subscribing multiple times

烂漫一生 提交于 2020-01-02 18:22:12
问题 I'm using paypal subscriptions and the instant payment notification (IPN) to handle subscribers on my site. For the most part it works well but there is one occasional problem I've encountered. Usually if a user cancels their subscription, I wait for the "end of term" (subscr_eot) notification before disabling access to my site. So if they prepay for the whole month, and then cancel right away, they still have access for the rest of the month (as it should be). But some users are having this