Pay widget

General Information

The Pleenk Pay widget can be included anywhere to receive payments. This widget is either an iframe or a link pointing to the Pleenk app.

Properties

ParameterTypeDescriptionOptional
pw_confidentiality_walletUUIDConfidentiality wallet ID where the widget is loadedYes
pw_descriptionStringFree label for the operationYes
pw_funds_blocking_periodString (formatted as jsr310-period)Escrow durationYes
pw_manual_confirmString (formatted as jsr310-period)Timeout for confirmation durationYes
pw_transaction_refStringPayment Reference/ID internal of the marketplace. Must be unique per privacy scope to avoid double transactions.No
pw_subscription_periodString (formatted as jsr310-period)Define the interval for recurring payments using the JSR-310 period format (e.g., P1M for monthly or P1Y for yearly).Yes
pw_metadataStringRaw metadata forwarded with notification callbacksYes
pw_beneficiary_0String|BigDecimalFirst beneficiary information of the transaction formatted as "PleenkEntityRef|AMOUNT". Amount uses "." as the decimal separator with no limits on decimals.No
pw_requestPleenkApproveRequestPleenk Approve requestYes
pw_callbackURLReturn URL after success operation (pay)Yes
pw_error_callbackURLReturn URL after failure operation (pay)
pw_notificationURLURL to receive payment event notifications via webhook. A POST request with payment data in JSON will be sent to this endpoint.Yes
signatureStringWidget signature to ensure that the provided information is certified by the marketplace.

Examples


  • Simple payment: https://app.pleenk.com/payment?pw_confidentiality_wallet=af9e3349-8031-4993-b649-ebd88109893d&pw_description=A-simple-payment&pw_transaction_ref=ORDER-123&pw_beneficiary_0=af9e3349-8031-4993-b649-ebd88109893d|10&signature=MGQCMEa8GaEVX6u7a2orsGVAreNAMDqptNiOtFGP2v_Rn4l25bUAVy74m66V9OYEuVNscwIwdCyk3TeQJp_bD5_5EfR_J4f0v94nE9Y155PGFcChr_KksRaQmUhRrx0XCeK8A37N

  • Third-Party seller payment: https://app.pleenk.com/payment?pw_confidentiality_wallet=af9e3349-8031-4993-b649-ebd88109893d&pw_description=A-simple-payment&pw_transaction_ref=ORDER-123&pw_beneficiary_0=af9e3349-8031-4993-b649-ebd88109893d|2&pw_beneficiary_1=SELLER_341|10&signature=MGQCMEa8GaEVX6u7a2orsGVAreNAMDqptNiOtFGP2v_Rn4l25bUAVy74m66V9OYEuVNscwIwdCyk3TeQJp_bD5_5EfR_J4f0v94nE9Y155PGFcChr_KksRaQmUhRrx0XCeK8A37N

Notifications

  • Type: PAYMENT
  • Data:
    • transactionRef (String): pw_transaction_ref from the request.
    • paymentId (String): Unique internal ID for the payment.
    • metadata (String): pw_metadata from the request.
    • status (Enum): {CONFIRMED}.