--
Creates a subscription and returns a signed ConvertPlus URL for the server-calculated total.
Output from POST /api/subscription/package/sync-2checkout or auto-sync:
No sync performed yet. Click "Sync This Plan to 2CO" or "Sync All to 2CO" to test.
Endpoint: POST /api/subscription/plan/:packageId
{
"paymentMethod": "card",
"customerName": "Alice Smith",
"email": "alice@peopublic.com",
"country": "NG",
"currency": "USD",
"redirectUrl": "...",
"cancelUrl": "..."
}
Awaiting request...
Once 2Checkout processes payment, it posts an IPN notification to POST /api/webhook/2checkout which activates the subscription.
Calls POST /api/advertisements/:id/pay → generates a signed ConvertPlus URL.
Endpoint: POST /api/advertisements/:id/pay
Awaiting request...
Awaiting request...
Once 2Checkout processes payment, IPN fires to POST /api/webhook/2checkout
which updates the ad record. Use verify as a fallback.
Use an active product belonging to the seller. The server reads its stored price and VAT category.
No payment is sent until you open the generated URL. Use a test token and a sandbox merchant account.
Awaiting request...