paypal

How to check Billing Agreement is active or cancel?

夙愿已清 提交于 2020-04-15 22:59:19
问题 I am using Reference Transaction API in PayPal and not sure whether Billing Agreement is active or not while billing. I would like to know in advance if Billing Agreement is cancelled. I am wondering to have callback call on Billing agreement cancel call. 回答1: to check the status of a Billing Agreement you can use the BAUpdate API (NVP: METHOD=BillAgreementUpdate). Normally this API is used to delete a Billing Agreement, but if you use it without the BillingAgreementStatus field, it returns

How to check Billing Agreement is active or cancel?

给你一囗甜甜゛ 提交于 2020-04-15 22:57:32
问题 I am using Reference Transaction API in PayPal and not sure whether Billing Agreement is active or not while billing. I would like to know in advance if Billing Agreement is cancelled. I am wondering to have callback call on Billing agreement cancel call. 回答1: to check the status of a Billing Agreement you can use the BAUpdate API (NVP: METHOD=BillAgreementUpdate). Normally this API is used to delete a Billing Agreement, but if you use it without the BillingAgreementStatus field, it returns

Paypal JS SDK Smart Payment - Disable address promt for Creditcard payment without account

北城以北 提交于 2020-04-09 20:59:02
问题 I'm integrating the Smart Payment Buttons in the paypal checkout <script src="https://www.paypal.com/sdk/js?...> paypal.Buttons({ createOrder(data, actions) { // ... onApprove(data, actions) { // ... }).render('#paypal-button'); Besides paying with a PayPal account we want to offer the User to pay for our digital products with SEPA or Credit Card without creating a paypal account . What we don't require is a billing address or shipping address input from the user. We already have that

Paypal JS SDK Smart Payment - Disable address promt for Creditcard payment without account

非 Y 不嫁゛ 提交于 2020-04-09 20:53:28
问题 I'm integrating the Smart Payment Buttons in the paypal checkout <script src="https://www.paypal.com/sdk/js?...> paypal.Buttons({ createOrder(data, actions) { // ... onApprove(data, actions) { // ... }).render('#paypal-button'); Besides paying with a PayPal account we want to offer the User to pay for our digital products with SEPA or Credit Card without creating a paypal account . What we don't require is a billing address or shipping address input from the user. We already have that

How do I add PayPal's Smart Buttons to an existing javascript cart?

瘦欲@ 提交于 2020-04-07 07:04:21
问题 I am trying to integrate PayPal's Smart Payment Buttons into my cart on my website. My cart is integrated using VanillaCart JS and here is my main.js file: 'use strict'; let cart = (JSON.parse(localStorage.getItem('cart')) || []); const cartDOM = document.querySelector('.cart'); const addToCartButtonsDOM = document.querySelectorAll('[data-action="ADD_TO_CART"]'); if (cart.length > 0) { cart.forEach(cartItem => { const product = cartItem; insertItemToDOM(product); countCartTotal();

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('

Why does adding items make Paypal Checkout return an error?

时光毁灭记忆、已成空白 提交于 2020-03-23 12:37:06
问题 I am trying to create a PayPal order using the Javascript SDK. I am unable to add items without PayPal returning a non-descriptive 400 error. This markup works fine: return actions.order.create({ purchase_units: [{ description: "Stuff", amount: { value: '57.49', currency_code: "CAD", }, }], application_context: { brand_name: "MyBusiness", shipping_preference: 'NO_SHIPPING' } }); This markup, where I add the amount breakdown and items doesn't: return actions.order.create({ purchase_units: [{

PHP curl_multi_exec output to array

≯℡__Kan透↙ 提交于 2020-03-02 19:35:31
问题 I'm working with PayPal's classic API, and I'm having difficulty with getting the results from curl_multi in PHP. The code I have so far is: <?php $mh = curl_multi_init(); include('../connect.php'); $sql = "SELECT * FROM transactions ORDER BY ID asc LIMIT 0,2"; $result = mysql_query($sql); while($row = mysql_fetch_array($result)){ $rid = $row['ID']; $tid = $row['transID']; $sandbox = FALSE; // Set PayPal API version and credentials. $api_version = '85.0'; $api_endpoint = 'https://api-3t

PHP curl_multi_exec output to array

夙愿已清 提交于 2020-03-02 19:34:00
问题 I'm working with PayPal's classic API, and I'm having difficulty with getting the results from curl_multi in PHP. The code I have so far is: <?php $mh = curl_multi_init(); include('../connect.php'); $sql = "SELECT * FROM transactions ORDER BY ID asc LIMIT 0,2"; $result = mysql_query($sql); while($row = mysql_fetch_array($result)){ $rid = $row['ID']; $tid = $row['transID']; $sandbox = FALSE; // Set PayPal API version and credentials. $api_version = '85.0'; $api_endpoint = 'https://api-3t

Paypal returns “The merchant does not accept payments of this type”

坚强是说给别人听的谎言 提交于 2020-02-29 04:19:05
问题 I integrated Paypal into my mobile APP and I use the REST API Calls. If I pay the ordeers using paypal account, It works succesfully, but if I use Direct Credit Card Payment (when the user doesn't have the paypal account), Paypal System return an error: "The merchant does not accept payments of this type" I don't found in my Paypal Dashboard where this payment type could be enabled. Could you please help me? Thanks Luca 回答1: Following are checklist you should verify, probably following is the