A comprehensive Strapi plugin that integrates the Payone payment gateway into your Strapi application. This plugin provides both backend API integration and an admin panel interface for managing payment transactions.
- Features
- Requirements
- Installation
- Configuration
- Getting Started
- Usage
- 3D Secure (3DS) Authentication
- Payment Methods & Operations
- Supported Payment Methods
- Payone API Integration: Full integration with Payone's Server API (v3.10)
- Payment Operations:
- Preauthorization (reserve funds)
- Authorization (immediate charge)
- Capture (complete preauthorized transactions)
- Refund (return funds to customers)
- Admin Panel:
- Easy configuration interface
- Transaction history viewer with filtering
- Payment testing tools
- Connection testing
- Transaction Logging: Automatic logging of all payment operations
- Security: Secure credential storage with masked API keys
- Test & Live Modes: Support for both test and production environments
Before installing this plugin, ensure you have:
- Strapi: Version 4.6.0 or higher
- Node.js: Version 18.0.0 to 20.x.x
- npm: Version 6.0.0 or higher
- Payone Account: Active Payone merchant account with API credentials
You will need the following credentials from your Payone account:
- AID (Account ID): Your Payone sub-account identifier
- Portal ID: Your Payone portal identifier
- Merchant ID (MID): Your merchant identifier
- Portal Key: Your API authentication key (also called "Portal Key" or "Security Key")
βΉοΈ How to get Payone credentials: Log into your Payone Merchant Interface (PMI) and navigate to Configuration β Payment Portals β [Your Portal] β Advanced Tab to find these credentials.
# Using npm
npm install strapi-plugin-payone-provider
# Using yarn
yarn add strapi-plugin-payone-provider
# Using pnpm
pnpm add strapi-plugin-payone-providerAfter installation, you need to configure your Payone credentials:
- Log into your Strapi admin panel
- Navigate to Payone Provider in the sidebar menu
- Go to the Configuration tab
- Fill in your Payone credentials:
- Account ID (AID): Your Payone account ID
- Portal ID: Your Payone portal ID
- Merchant ID (MID): Your merchant ID
- Portal Key: Your API security key
- Mode: Select
testfor testing orlivefor production - API Version: Leave as
3.10(default)
- Click "Test Connection" to verify your credentials
- Click "Save Configuration" to store your settings
To configure Apple Pay settings:
- Navigate to Payone Provider in the sidebar menu
- Go to Payment Actions tab
- Select Apple Pay as the payment method
- Click on the Apple Pay configuration link:
/plugins/strapi-plugin-payone-provider/apple-pay-config - Configure the following settings:
- Country Code: Select the country where your business operates
- Currency Code: Select the currency for transactions
- Supported Networks: Select payment card networks (Visa, Mastercard, Amex, etc.)
- Merchant Capabilities: Select payment capabilities (3D Secure is recommended)
- Button Style & Type: Customize the Apple Pay button appearance
- Click "Save Apple Pay Configuration" to store your settings
β οΈ Important: Apple Pay requires a registered domain with HTTPS. It does NOT work on localhost. For testing, use a production domain with HTTPS or test on a device with Safari (iOS/macOS).
Apple Pay requires a domain verification file to be placed on your server. This file must be accessible at:
https://yourdomain.com/.well-known/apple-developer-merchantid-domain-association
Steps to set up the domain verification file:
-
Download the file from Payone:
- Download the domain verification file from Payone documentation: https://docs.payone.com/payment-methods/apple-pay/apple-pay-without-dev
- Alternatively, log into your Payone Merchant Interface (PMI)
- Navigate to Configuration β Payment Portals β Apple Pay
- Download the
apple-developer-merchantid-domain-associationfile
-
Place the file in Strapi:
- Create the directory:
public/.well-known/(if it doesn't exist) - Place the file at:
public/.well-known/apple-developer-merchantid-domain-association
- Create the directory:
-
Place the file in your Frontend (if separate):
- Create the directory:
public/.well-known/(if it doesn't exist) - Place the file at:
public/.well-known/apple-developer-merchantid-domain-association
- Create the directory:
-
Verify accessibility:
- The file must be accessible via HTTPS at:
https://yourdomain.com/.well-known/apple-developer-merchantid-domain-association - Test by visiting the URL in your browser - you should see the file content
- The file must be accessible via HTTPS at:
β οΈ Critical: Without this file, Apple Pay will NOT work on your domain. The file must be accessible via HTTPS and must match exactly what Payone provides.
Apple Pay requires Content Security Policy (CSP) configuration in config/middlewares.js to allow Apple Pay scripts. Without this configuration, Apple Pay will NOT work.
Required CSP directives:
module.exports = [
"strapi::logger",
"strapi::errors",
{
name: "strapi::security",
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
"script-src": [
"'self'",
"'unsafe-inline'",
"'unsafe-eval'",
"https://applepay.cdn-apple.com", // Apple Pay SDK
"https://www.apple.com", // Apple Pay manifest
],
"connect-src": [
"'self'",
"https:",
"https://applepay.cdn-apple.com", // Apple Pay API
"https://www.apple.com", // Apple Pay manifest
],
"frame-src": [
"'self'",
"https://applepay.cdn-apple.com", // Apple Pay iframe
],
},
},
},
},
// ... other middlewares
];
β οΈ Important: Without this middleware configuration, Apple Pay scripts will be blocked and Apple Pay will NOT work!
To configure Google Pay settings:
- Navigate to Payone Provider in the sidebar menu
- Go to Payment Actions tab
- Select Google Pay as the payment method
- Click on the Google Pay configuration link:
/plugins/strapi-plugin-payone-provider/google-pay-config - Configure the following settings:
- Country Code: Select the country where your business operates
- Currency Code: Select the currency for transactions
- Merchant Name: Enter your business name as it will appear in Google Pay
- Allowed Card Networks: Select payment card networks (Mastercard, Visa, Amex, etc.)
- Allowed Authentication Methods: Select authentication methods (PAN Only, 3D Secure)
- Click "Save Google Pay Configuration" to store your settings
βΉοΈ Note: The Gateway Merchant ID will be automatically obtained from your Payone Merchant ID (MID) or Portal ID configured in the main Configuration tab.
Google Pay requires Content Security Policy (CSP) configuration in config/middlewares.js to allow Google Pay scripts. Without this configuration, Google Pay will NOT work.
Required CSP directives:
module.exports = [
"strapi::logger",
"strapi::errors",
{
name: "strapi::security",
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
"script-src": [
"'self'",
"'unsafe-inline'",
"'unsafe-eval'",
"https://pay.google.com", // Google Pay SDK
],
"connect-src": [
"'self'",
"https:",
"https://pay.google.com", // Google Pay API
],
"frame-src": [
"'self'",
"https://pay.google.com", // Google Pay iframe
],
},
},
},
},
// ... other middlewares
];
β οΈ Important: Without this middleware configuration, Google Pay scripts will be blocked and Google Pay will NOT work!
After configuring your credentials:
- Open the Configuration tab in the Payone Provider admin panel
- Click the "Test Connection" button
- If successful, you'll see a green success message
- If it fails, check your credentials and try again
- Go to the Payment Actions tab
- Try a Preauthorization operation:
- Amount: 1000 (equals 10.00 EUR in cents)
- Reference: Leave empty for auto-generation
- Click "Execute Preauthorization"
- Check the Transaction History tab to see the logged transaction
All API endpoints are available at:
Content API (Frontend): /api/strapi-plugin-payone-provider
Admin API: /strapi-plugin-payone-provider
β οΈ Authentication Required: All endpoints require authentication. Include your Bearer token in the Authorization header.
{
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_AUTH_TOKEN"
}All responses include:
status: Transaction status (APPROVED, ERROR, REDIRECT, etc.)txid: Transaction ID (for successful transactions)errorcode: Error code (if status is ERROR)errormessage: Error message (if status is ERROR)
3D Secure (3DS) is a security protocol that adds an extra layer of authentication for credit card payments, ensuring compliance with Strong Customer Authentication (SCA) requirements.
- Navigate to Payone Provider in the Strapi admin panel
- Go to the Configuration tab
- Find the "Enable 3D Secure" dropdown
- Select "Enabled" to activate 3DS for credit card payments
- Click "Save Configuration"
β οΈ Note: When 3DS is enabled, it only applies to credit card payments (clearingtype: "cc"). Other payment methods are not affected.
3D Secure works with the following operations:
- β
Preauthorization (
POST /api/strapi-plugin-payone-provider/preauthorization) - β
Authorization (
POST /api/strapi-plugin-payone-provider/authorization) - β Capture - Not applicable (uses preauthorized transaction)
- β Refund - Not applicable (uses existing transaction)
When 3DS is enabled and you're making a credit card payment, the following parameters are required:
Credit Card Details (required when 3DS is enabled):
cardtype: Card type ("V"for VISA,"M"for Mastercard,"A"for AMEX, etc.)cardpan: Card number (PAN)cardexpiredate: Expiry date in formatYYMM(e.g.,"2512"for December 2025)cardcvc2: CVC/CVV code (3 digits for most cards, 4 digits for AMEX)
Redirect URLs (required for 3DS authentication flow):
successurl: URL to redirect after successful 3DS authenticationerrorurl: URL to redirect after 3DS authentication errorbackurl: URL to redirect if user cancels 3DS authentication
Example Request:
{
"amount": 1000,
"currency": "EUR",
"reference": "PAY1234567890ABCDEF",
"clearingtype": "cc",
"cardtype": "V",
"cardpan": "4111111111111111",
"cardexpiredate": "2512",
"cardcvc2": "123",
"firstname": "John",
"lastname": "Doe",
"email": "john.doe@example.com",
"street": "Main Street 123",
"zip": "12345",
"city": "Berlin",
"country": "DE",
"successurl": "https://www.example.com/success",
"errorurl": "https://www.example.com/error",
"backurl": "https://www.example.com/back"
}When 3DS is required, the API response will include:
{
"data": {
"status": "REDIRECT",
"redirecturl": "https://secure.pay1.de/3ds/...",
"requires3DSRedirect": true,
"txid": "123456789"
}
}Response Fields:
status:"REDIRECT"when 3DS authentication is requiredredirecturl: URL to redirect the customer for 3DS authenticationrequires3DSRedirect: Boolean indicating if redirect is neededtxid: Transaction ID (if available)
After the customer completes 3DS authentication, Payone will send a callback to:
URL: POST /api/strapi-plugin-payone-provider/3ds-callback
This endpoint processes the 3DS authentication result and updates the transaction status.
βΉοΈ Note: The callback endpoint is automatically handled by the plugin. You don't need to manually process it unless you're implementing custom callback handling.
- Request: Send a preauthorization or authorization request with credit card details and redirect URLs
- Response: If 3DS is required, you'll receive a
REDIRECTstatus with aredirecturl - Redirect: Redirect the customer to the
redirecturlfor 3DS authentication - Callback: After authentication, Payone redirects back to your
successurl,errorurl, orbackurlwith transaction data - Completion: The transaction is completed based on the authentication result
For testing 3DS authentication, use test cards that trigger 3DS challenges. Refer to the Payone 3D Secure Documentation for test card numbers and scenarios.
Credit Card Payment Method
URL: POST /api/strapi-plugin-payone-provider/preauthorization
Request Body:
{
"amount": 1000,
"currency": "EUR",
"reference": "PAY1234567890ABCDEF",
"clearingtype": "cc",
"cardtype": "V",
"cardpan": "4111111111111111",
"cardexpiredate": "2512",
"cardcvc2": "123",
"firstname": "John",
"lastname": "Doe",
"email": "john.doe@example.com",
"telephonenumber": "+4917512345678",
"street": "Main Street 123",
"zip": "12345",
"city": "Berlin",
"country": "DE",
"successurl": "https://www.example.com/success",
"errorurl": "https://www.example.com/error",
"backurl": "https://www.example.com/back",
"salutation": "Herr",
"gender": "m",
"ip": "127.0.0.1",
"language": "de",
"customer_is_present": "yes"
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789",
"userid": "987654321"
}
}URL: POST /api/strapi-plugin-payone-provider/authorization
Request Body: (Same as Preauthorization)
{
"amount": 1000,
"currency": "EUR",
"reference": "PAY1234567890ABCDEF",
"clearingtype": "cc",
"cardtype": "V",
"cardpan": "4111111111111111",
"cardexpiredate": "2512",
"cardcvc2": "123",
"firstname": "John",
"lastname": "Doe",
"email": "john.doe@example.com",
"telephonenumber": "+4917512345678",
"street": "Main Street 123",
"zip": "12345",
"city": "Berlin",
"country": "DE",
"successurl": "https://www.example.com/success",
"errorurl": "https://www.example.com/error",
"backurl": "https://www.example.com/back",
"salutation": "Herr",
"gender": "m",
"ip": "127.0.0.1",
"language": "de",
"customer_is_present": "yes"
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789",
"userid": "987654321"
}
}URL: POST /api/strapi-plugin-payone-provider/capture
Request Body:
{
"txid": "123456789",
"amount": 1000,
"currency": "EUR",
"sequencenumber": 1
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789"
}
}URL: POST /api/strapi-plugin-payone-provider/refund
Request Body:
{
"txid": "123456789",
"amount": -1000,
"currency": "EUR",
"reference": "REF1234567890ABCDEF",
"sequencenumber": 2
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789"
}
}PayPal Payment Method
URL: POST /api/strapi-plugin-payone-provider/preauthorization
Request Body:
{
"amount": 1000,
"currency": "EUR",
"reference": "PAY1234567890ABCDEF",
"clearingtype": "wlt",
"wallettype": "PPE",
"firstname": "John",
"lastname": "Doe",
"email": "john.doe@example.com",
"telephonenumber": "+4917512345678",
"street": "Main Street 123",
"zip": "12345",
"city": "Berlin",
"country": "DE",
"shipping_firstname": "John",
"shipping_lastname": "Doe",
"shipping_street": "Main Street 123",
"shipping_zip": "12345",
"shipping_city": "Berlin",
"shipping_country": "DE",
"successurl": "https://www.example.com/success",
"errorurl": "https://www.example.com/error",
"backurl": "https://www.example.com/back",
"salutation": "Herr",
"gender": "m",
"ip": "127.0.0.1",
"language": "de",
"customer_is_present": "yes"
}Response:
{
"data": {
"status": "REDIRECT",
"txid": "123456789",
"redirecturl": "https://secure.pay1.de/redirect/..."
}
}URL: POST /api/strapi-plugin-payone-provider/authorization
Request Body: (Same as Preauthorization)
{
"amount": 1000,
"currency": "EUR",
"reference": "PAY1234567890ABCDEF",
"clearingtype": "wlt",
"wallettype": "PPE",
"firstname": "John",
"lastname": "Doe",
"email": "john.doe@example.com",
"telephonenumber": "+4917512345678",
"street": "Main Street 123",
"zip": "12345",
"city": "Berlin",
"country": "DE",
"shipping_firstname": "John",
"shipping_lastname": "Doe",
"shipping_street": "Main Street 123",
"shipping_zip": "12345",
"shipping_city": "Berlin",
"shipping_country": "DE",
"successurl": "https://www.example.com/success",
"errorurl": "https://www.example.com/error",
"backurl": "https://www.example.com/back",
"salutation": "Herr",
"gender": "m",
"ip": "127.0.0.1",
"language": "de",
"customer_is_present": "yes"
}Response:
{
"data": {
"status": "REDIRECT",
"txid": "123456789",
"redirecturl": "https://secure.pay1.de/redirect/..."
}
}URL: POST /api/strapi-plugin-payone-provider/capture
Request Body:
{
"txid": "123456789",
"amount": 1000,
"currency": "EUR",
"sequencenumber": 1,
"capturemode": "full"
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789"
}
}URL: POST /api/strapi-plugin-payone-provider/refund
Request Body:
{
"txid": "123456789",
"amount": -1000,
"currency": "EUR",
"reference": "REF1234567890ABCDEF",
"sequencenumber": 2
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789"
}
}Google Pay Payment Method
Google Pay integration requires obtaining an encrypted payment token from Google Pay API and sending it to Payone. The token must be Base64 encoded before sending to Payone.
1. Include Google Pay Script
<script async src="https://pay.google.com/gp/p/js/pay.js"></script>2. Initialize Google Pay
const paymentsClient = new google.payments.api.PaymentsClient({
environment: "TEST", // or "PRODUCTION" for live
});
const baseRequest = {
apiVersion: 2,
apiVersionMinor: 0,
};
const allowedCardNetworks = ["MASTERCARD", "VISA"];
const allowedAuthMethods = ["PAN_ONLY", "CRYPTOGRAM_3DS"];
const tokenizationSpecification = {
type: "PAYMENT_GATEWAY",
parameters: {
gateway: "payonegmbh",
gatewayMerchantId: "YOUR_PAYONE_MERCHANT_ID", // Use your Payone MID or Portal ID
},
};
const cardPaymentMethod = {
type: "CARD",
parameters: {
allowedCardNetworks,
allowedAuthMethods,
},
tokenizationSpecification,
};
const isReadyToPayRequest = Object.assign({}, baseRequest);
isReadyToPayRequest.allowedPaymentMethods = [cardPaymentMethod];
paymentsClient.isReadyToPay(isReadyToPayRequest).then(function (response) {
if (response.result) {
// Google Pay is available, show button
}
});3. Create Payment Button and Get Token
const paymentDataRequest = Object.assign({}, baseRequest);
paymentDataRequest.allowedPaymentMethods = [cardPaymentMethod];
paymentDataRequest.transactionInfo = {
totalPriceStatus: "FINAL",
totalPrice: "10.00",
currencyCode: "EUR",
};
paymentDataRequest.merchantInfo = {
merchantId: "YOUR_GOOGLE_MERCHANT_ID", // Optional: from Google Console
merchantName: "Your Merchant Name",
};
const button = paymentsClient.createButton({
onClick: async () => {
try {
const paymentData = await paymentsClient.loadPaymentData(
paymentDataRequest
);
const token = paymentData.paymentMethodData.tokenizationData.token;
// Token is a JSON string, encode it to Base64 for Payone
const base64Token = btoa(unescape(encodeURIComponent(token)));
// Send to your backend
await fetch("/api/strapi-plugin-payone-provider/preauthorization", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer YOUR_TOKEN",
},
body: JSON.stringify({
amount: 1000,
currency: "EUR",
reference: "PAY1234567890ABCDEF",
googlePayToken: base64Token,
}),
});
} catch (error) {
console.error("Google Pay error:", error);
}
},
});
document.getElementById("google-pay-button").appendChild(button);Token Format
The token from Google Pay is a JSON string with the following structure:
{
"signature": "MEUCIFr4ETGzv0uLZX3sR+i1ScARXnRBrncyYFDX/TI/VSLCAiEAvC/Q4dqXMQhwcSdg/ZvXj8+up0wXsfHja3V/6z48/vk=",
"intermediateSigningKey": {
"signedKey": "{\"keyValue\":\"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE7PWUi+e6WPUhNmTSQ2WN006oWlcWy0FtBWizw9sph1wvX9XcXUNRLcfcsmCBfI5IsKQkjAmYxpCSB+L5sIudLw\\u003d\\u003d\",\"keyExpiration\":\"1722393105282\"}",
"signatures": [
"MEUCIQCpU30A3g2pP93IBE5NxgO9ZcJlGF9YPzCZS7H4/IR1CQIgF6+I5t8olT8YsRDUcj7w3R1bvX4ZCcyFXE2+YXa+3H0="
]
},
"protocolVersion": "ECv2",
"signedMessage": "{\"encryptedMessage\":\"...\",\"ephemeralPublicKey\":\"...\",\"tag\":\"...\"}"
}Important: The token must be Base64 encoded before sending to Payone.
URL: POST /api/strapi-plugin-payone-provider/preauthorization
Request Body:
{
"amount": 1000,
"currency": "EUR",
"reference": "PAY1234567890ABCDEF",
"clearingtype": "wlt",
"wallettype": "GGP",
"firstname": "John",
"lastname": "Doe",
"email": "john.doe@example.com",
"telephonenumber": "+4917512345678",
"street": "Main Street 123",
"zip": "12345",
"city": "Berlin",
"country": "DE",
"shipping_firstname": "John",
"shipping_lastname": "Doe",
"shipping_street": "Main Street 123",
"shipping_zip": "12345",
"shipping_city": "Berlin",
"shipping_country": "DE",
"successurl": "https://www.example.com/success",
"errorurl": "https://www.example.com/error",
"backurl": "https://www.example.com/back",
"googlePayToken": "BASE64_ENCODED_TOKEN",
"salutation": "Herr",
"gender": "m",
"ip": "127.0.0.1",
"language": "de",
"customer_is_present": "yes"
}Payone Request Parameters (automatically added by plugin):
{
"request": "preauthorization",
"amount": 1000,
"currency": "EUR",
"reference": "PAY1234567890ABCDEF",
"clearingtype": "wlt",
"wallettype": "GGP",
"add_paydata[paymentmethod_token_data]": "BASE64_ENCODED_TOKEN",
"add_paydata[paymentmethod]": "GGP",
"add_paydata[paymentmethod_type]": "GOOGLEPAY",
"add_paydata[gatewayid]": "payonegmbh",
"add_paydata[gateway_merchantid]": "YOUR_PAYONE_MERCHANT_ID",
"firstname": "John",
"lastname": "Doe",
"email": "john.doe@example.com",
"street": "Main Street 123",
"zip": "12345",
"city": "Berlin",
"country": "DE",
"shipping_firstname": "John",
"shipping_lastname": "Doe",
"shipping_street": "Main Street 123",
"shipping_zip": "12345",
"shipping_city": "Berlin",
"shipping_country": "DE",
"successurl": "https://www.example.com/success",
"errorurl": "https://www.example.com/error",
"backurl": "https://www.example.com/back"
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789"
}
}URL: POST /api/strapi-plugin-payone-provider/authorization
Request Body: (Same as Preauthorization, include googlePayToken)
{
"amount": 1000,
"currency": "EUR",
"reference": "PAY1234567890ABCDEF",
"clearingtype": "wlt",
"wallettype": "GGP",
"googlePayToken": "BASE64_ENCODED_TOKEN",
"firstname": "John",
"lastname": "Doe",
"email": "john.doe@example.com",
"street": "Main Street 123",
"zip": "12345",
"city": "Berlin",
"country": "DE",
"shipping_firstname": "John",
"shipping_lastname": "Doe",
"shipping_street": "Main Street 123",
"shipping_zip": "12345",
"shipping_city": "Berlin",
"shipping_country": "DE",
"successurl": "https://www.example.com/success",
"errorurl": "https://www.example.com/error",
"backurl": "https://www.example.com/back"
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789"
}
}URL: POST /api/strapi-plugin-payone-provider/capture
Request Body:
{
"txid": "123456789",
"amount": 1000,
"currency": "EUR",
"sequencenumber": 1
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789"
}
}URL: POST /api/strapi-plugin-payone-provider/refund
Request Body:
{
"txid": "123456789",
"amount": -1000,
"currency": "EUR",
"reference": "REF1234567890ABCDEF",
"sequencenumber": 2
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789"
}
}clearingtype: Must be"wlt"(wallet)wallettype: Must be"GGP"(Google Pay)add_paydata[paymentmethod_token_data]: Base64 encoded Google Pay token (automatically added by plugin)add_paydata[paymentmethod]:"GGP"(automatically added by plugin)add_paydata[paymentmethod_type]:"GOOGLEPAY"(automatically added by plugin)add_paydata[gatewayid]:"payonegmbh"(automatically added by plugin)add_paydata[gateway_merchantid]: Your Payone Merchant ID (automatically added by plugin)- Shipping address parameters (required for wallet payments)
Apple Pay Payment Method
URL: POST /api/strapi-plugin-payone-provider/preauthorization
Request Body:
{
"amount": 1000,
"currency": "EUR",
"reference": "PAY1234567890ABCDEF",
"clearingtype": "wlt",
"wallettype": "APL",
"firstname": "John",
"lastname": "Doe",
"email": "john.doe@example.com",
"telephonenumber": "+4917512345678",
"street": "Main Street 123",
"zip": "12345",
"city": "Berlin",
"country": "DE",
"shipping_firstname": "John",
"shipping_lastname": "Doe",
"shipping_street": "Main Street 123",
"shipping_zip": "12345",
"shipping_city": "Berlin",
"shipping_country": "DE",
"successurl": "https://www.example.com/success",
"errorurl": "https://www.example.com/error",
"backurl": "https://www.example.com/back",
"salutation": "Herr",
"gender": "m",
"ip": "127.0.0.1",
"language": "de",
"customer_is_present": "yes"
}Response:
{
"data": {
"status": "REDIRECT",
"txid": "123456789",
"redirecturl": "https://secure.pay1.de/redirect/..."
}
}URL: POST /api/strapi-plugin-payone-provider/authorization
Request Body: (Same as Preauthorization)
{
"amount": 1000,
"currency": "EUR",
"reference": "PAY1234567890ABCDEF",
"clearingtype": "wlt",
"wallettype": "APL",
"firstname": "John",
"lastname": "Doe",
"email": "john.doe@example.com",
"telephonenumber": "+4917512345678",
"street": "Main Street 123",
"zip": "12345",
"city": "Berlin",
"country": "DE",
"shipping_firstname": "John",
"shipping_lastname": "Doe",
"shipping_street": "Main Street 123",
"shipping_zip": "12345",
"shipping_city": "Berlin",
"shipping_country": "DE",
"successurl": "https://www.example.com/success",
"errorurl": "https://www.example.com/error",
"backurl": "https://www.example.com/back",
"salutation": "Herr",
"gender": "m",
"ip": "127.0.0.1",
"language": "de",
"customer_is_present": "yes"
}Response:
{
"data": {
"status": "REDIRECT",
"txid": "123456789",
"redirecturl": "https://secure.pay1.de/redirect/..."
}
}URL: POST /api/strapi-plugin-payone-provider/capture
Request Body:
{
"txid": "123456789",
"amount": 1000,
"currency": "EUR",
"sequencenumber": 1,
"capturemode": "full"
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789"
}
}URL: POST /api/strapi-plugin-payone-provider/refund
Request Body:
{
"txid": "123456789",
"amount": -1000,
"currency": "EUR",
"reference": "REF1234567890ABCDEF",
"sequencenumber": 2
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789"
}
}SEPA Direct Debit Payment Method
URL: POST /api/strapi-plugin-payone-provider/preauthorization
Request Body:
{
"amount": 1000,
"currency": "EUR",
"reference": "PAY1234567890ABCDEF",
"clearingtype": "elv",
"iban": "DE89370400440532013000",
"bic": "COBADEFFXXX",
"bankaccountholder": "John Doe",
"bankcountry": "DE",
"firstname": "John",
"lastname": "Doe",
"email": "john.doe@example.com",
"telephonenumber": "+4917512345678",
"street": "Main Street 123",
"zip": "12345",
"city": "Berlin",
"country": "DE",
"salutation": "Herr",
"gender": "m",
"ip": "127.0.0.1",
"language": "de",
"customer_is_present": "yes"
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789",
"userid": "987654321"
}
}URL: POST /api/strapi-plugin-payone-provider/authorization
Request Body: (Same as Preauthorization)
{
"amount": 1000,
"currency": "EUR",
"reference": "PAY1234567890ABCDEF",
"clearingtype": "elv",
"iban": "DE89370400440532013000",
"bic": "COBADEFFXXX",
"bankaccountholder": "John Doe",
"bankcountry": "DE",
"firstname": "John",
"lastname": "Doe",
"email": "john.doe@example.com",
"telephonenumber": "+4917512345678",
"street": "Main Street 123",
"zip": "12345",
"city": "Berlin",
"country": "DE",
"salutation": "Herr",
"gender": "m",
"ip": "127.0.0.1",
"language": "de",
"customer_is_present": "yes"
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789",
"userid": "987654321"
}
}URL: POST /api/strapi-plugin-payone-provider/capture
Request Body:
{
"txid": "123456789",
"amount": 1000,
"currency": "EUR",
"sequencenumber": 1
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789"
}
}URL: POST /api/strapi-plugin-payone-provider/refund
Request Body:
{
"txid": "123456789",
"amount": -1000,
"currency": "EUR",
"reference": "REF1234567890ABCDEF",
"sequencenumber": 2
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789"
}
}Sofort Banking Payment Method
URL: POST /api/strapi-plugin-payone-provider/preauthorization
Request Body:
{
"amount": 1000,
"currency": "EUR",
"reference": "PAY1234567890ABCDEF",
"clearingtype": "sb",
"onlinebanktransfertype": "PNT",
"bankcountry": "DE",
"firstname": "John",
"lastname": "Doe",
"email": "john.doe@example.com",
"telephonenumber": "+4917512345678",
"street": "Main Street 123",
"zip": "12345",
"city": "Berlin",
"country": "DE",
"successurl": "https://www.example.com/success",
"errorurl": "https://www.example.com/error",
"backurl": "https://www.example.com/back",
"salutation": "Herr",
"gender": "m",
"ip": "127.0.0.1",
"language": "de",
"customer_is_present": "yes"
}Response:
{
"data": {
"status": "REDIRECT",
"txid": "123456789",
"redirecturl": "https://secure.pay1.de/redirect/..."
}
}URL: POST /api/strapi-plugin-payone-provider/authorization
Request Body: (Same as Preauthorization)
{
"amount": 1000,
"currency": "EUR",
"reference": "PAY1234567890ABCDEF",
"clearingtype": "sb",
"onlinebanktransfertype": "PNT",
"bankcountry": "DE",
"firstname": "John",
"lastname": "Doe",
"email": "john.doe@example.com",
"telephonenumber": "+4917512345678",
"street": "Main Street 123",
"zip": "12345",
"city": "Berlin",
"country": "DE",
"successurl": "https://www.example.com/success",
"errorurl": "https://www.example.com/error",
"backurl": "https://www.example.com/back",
"salutation": "Herr",
"gender": "m",
"ip": "127.0.0.1",
"language": "de",
"customer_is_present": "yes"
}Response:
{
"data": {
"status": "REDIRECT",
"txid": "123456789",
"redirecturl": "https://secure.pay1.de/redirect/..."
}
}URL: POST /api/strapi-plugin-payone-provider/capture
Request Body:
{
"txid": "123456789",
"amount": 1000,
"currency": "EUR",
"sequencenumber": 1
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789"
}
}URL: POST /api/strapi-plugin-payone-provider/refund
Request Body:
{
"txid": "123456789",
"amount": -1000,
"currency": "EUR",
"reference": "REF1234567890ABCDEF",
"sequencenumber": 2
}Response:
{
"data": {
"status": "APPROVED",
"txid": "123456789"
}
}Click on any payment method to see detailed API documentation:
- amount: Always in cents (e.g., 1000 = 10.00 EUR)
- reference: Max 20 characters, alphanumeric only. Auto-normalized by the plugin.
- cardexpiredate: Format is YYMM (e.g., "2512" = December 2025)
- sequencenumber: Start with 1 for capture, 2 for first refund, increment for subsequent refunds
- Refund amount: Must be negative (e.g., -1000 for 10.00 EUR refund)
For redirect-based payment methods (PayPal, Google Pay, Apple Pay, Sofort), you must provide:
successurl: URL to redirect after successful paymenterrorurl: URL to redirect after payment errorbackurl: URL to redirect if user cancels payment
- Preauthorization: Reserves funds but doesn't charge immediately. Requires a Capture call later.
- Authorization: Immediately charges the customer's payment method.
For wallet payments (PayPal, Google Pay, Apple Pay), you can specify:
capturemode: "full": Capture the entire preauthorized amountcapturemode: "partial": Capture less than the preauthorized amount