Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in

Le Forum de la communauté n’est pas disponible pour les nouveaux messages ou les réponses; les articles précédents restent disponibles pour vérification. Afin de connaître les options d’assistance complètes, rendez-vous sur PayPal.com/HelpCenter

Si vous souhaitez signaler du contenu illégal et contraire au Règlement sur les services numériques de l’Union Européenne (DSA), veuillez cliquer ici.

since ‎Aug-15-2018
Country: Germany
Type: Business
MABS-Inp
MABS-Inp Contributor
Contributor
3
Posts
1
Kudos
0
Solutions
Your 3rd PayPal Anniversary
Your PayPal Anniversary
Liked
Ice Breaker
Giving
The Return
Active
View all
Latest Contributions by MABS-Inp
  • Topics MABS-Inp has Participated In
  • Latest Contributions by MABS-Inp

Which method to use on variating monthly billings?

by MABS-Inp Contributor in REST APIs
‎Aug-31-2018 01:06 AM
‎Aug-31-2018 01:06 AM
I get a little bit lost in the documentation for possible billing methods in the REST API.   We're building an application, where our customers should be billed monthly, but not automatically. The amount of the invoice variates from month to month, based on the intensity of usage. It might happen, that the customer does not uses the application for a while. Then were shouldn't be a automatic billing. Our software should trigger the payment, but i don't want to ask the customer every time for permission. I want to ask the customer only once and then get paid without customer interaction using an API request.   At the moment, i tested the "Billing Plans" and "Billing Agreements", but it seems, that i can only define a monthly recurring amount, which will billed automatically. I can not setup a plan without an amount, and i cannot trigger a payment using this agreement.   Which payment solution is the right for my situation, or how do i have to set up the billing plans and agreements to archieve my wanted result? ... View more

Re: How to get the Agreement ID on creation of RES...

by MABS-Inp Contributor in REST APIs
‎Aug-31-2018 12:50 AM
‎Aug-31-2018 12:50 AM
Thank you Justin, i checked your solution and finally got an ID as expected. Nevertheless i have to say, the documentation is not correct about that behaviour. Look here: https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements-create-response There should be an explanation about this workflow. At the moment it says, that you have to create an agreement and will get an ID as response:   A successful request returns the HTTP 201 Created status code and a JSON response body that shows billing agreement details including a billing agreement id and redirect links to get the buyer's approval.   There is nowhere a hint about the need to execute the agreement before you get an ID. ... View more

How to get the Agreement ID on creation of REST AP...

by MABS-Inp Contributor in REST APIs
‎Aug-15-2018 06:03 AM
1 Kudo
‎Aug-15-2018 06:03 AM
1 Kudo
Hello, i'm trying to create a new billing agreement with my customers using the REST API and the PHP-SDK. Then I'll request the API to create a new agreement, passing a correct plan-ID, i'll get this response: { "name": "Base Agreement", "description": "Basic Agreement", "start_date": "2018-08-15T13:32:38+00:00", "plan": { "id": "P-1JR66297L7128100YH******", "state": "ACTIVE", "name": "Test Workflow", "description": "Test Workflow", "type": "INFINITE", "payment_definitions": [{ "id": "PD-0HN28616CR5245516H******", "name": "Monatliche Rechnung", "type": "REGULAR", "frequency": "Month", "amount": { "currency": "EUR", "value": "100" }, "cycles": "0", "charge_models": [], "state": null, "frequency_interval": "1" }], "merchant_preferences": { "setup_fee": { "currency": "EUR", "value": "0" }, "max_fail_attempts": "0", "return_url": "http://localhost/frontend/ExecuteAgreement.php?success=true", "cancel_url": "http://localhost/frontend/ExecuteAgreement.php?success=false", "notify_url": null, "id": null, "state": null, "auto_bill_amount": "NO", "initial_fail_amount_action": "CONTINUE", "accepted_payment_type": null, "char_set": null } }, "links": [{ "href": "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-27336791K47******", "rel": "approval_url", "method": "REDIRECT" }, { "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/EC-27336791K47******/agreement-execute", "rel": "execute", "method": "POST" }] } As you can see, the agreement is correctly created, but there is no id of the agreement. If i'll call the approval-url, it takes me correctly to the PayPal Loginpage. But also on return to my server i don't get any hint about the agreement id. How do i get it? In the Developer Docs it is mentioned, that there should be a field id, but it is not there. A bug in the API or do i make something wrong? PayPal-Debug-ID: 283eb878ec5d1 ... View more
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2025 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Cookies
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros