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

Paymentwall

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

{
	"gateway": "paymentwall",
	"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": {
		"project": "project id",
		"secret": "secret id"
	},
	"meta": {
		"registrationTimestamp": 123, // Unixtimestamp - Optional
		"widget": "p10" // Widget to use - Optional
	}
}
// Creation success
{
    "success": true,
    "data": {
        "url": "https://pay.paymentwall.com?"
    },
    "errors": null
}


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

Last updated 4 years ago

Was this helpful?