Payments
  • Welcome
  • One time payment
    • OneBip
    • PayPal Legacy
    • PayPal
    • Stripe
    • Paymentwall
    • Mollie
  • Subscription payment
    • PayPal
  • Webhook
    • Payment Payload
    • Subscription Status Paypload
    • Validating webhook
  • Payment Entities
    • Base
    • User
    • Package
    • Subscription
    • InvoiceNinja
    • FactuurSturen
Powered by GitBook
On this page

Was this helpful?

  1. One time payment

PayPal Legacy

Legacy PayPal integration (buy buttons using e-mail address)

// POST (application/json) - https://payments.cloudprotected.net/v1/payments/create

{
	"gateway": "paypalLegacy",
	"successUrl": "https://shop.example.com/success",
	"failedUrl": "https://shop.example.com/failed",
	"webhookUrl": "https://shop.example.com/process",
	"identifier": "payment12345",
	"package": {
		"name": "Test Package",
		"price": 10.99,
		"currency": "EUR"
	},
	"subscription": {
		"enabled": false
	},
	"user": {
		"identifier": "1234",
    "email": "pay@example.com"
	},
	"credential": {
		"email": "paypal@example.com"
	}
}
// Creation success
{
    "success": true,
    "data": {
        "url": "https://www.paypal.com?paymenturl"
    },
    "errors": null
}


// Validation error
{
    "success": false,
    "data": null,
    "errors": [
        "The user.identifier field is required."
    ]
}
PreviousOneBipNextPayPal

Last updated 4 years ago

Was this helpful?