Documentation Home/Guides/Accept Payments Online

    Accept PaymentsOnline Guide

    Learn how to accept online payments from your customers using Pro-Life Payments. Secure, simple, and supporting life with every transaction.

    Developer Guide

    How it works

    Accepting payments is as simple as two steps: securely collect details with the JS SDK on the client, then finalize the payment from your server.

    1

    Securely Collect Payment Details

    Use the Pro-Life Payments JS SDK to capture and tokenize payment details safely on the client side.

    2

    Finalize Payment (server-side)

    Use the Pro-Life Payments API to process the payment securely from your server with the tokenized payment details.

    1Step One

    Securely Collect Payment Details

    The Pro-Life Payments JS SDK embeds a payment form into your page to securely collect payment details from your customer. When the details are collected, Pro-Life Payments tokenizes all the sensitive information and creates a PaymentToken.

    Generate Payment Tokens

    Use the code sample below to learn how to create a PaymentToken

    Recipe
    Pro tip: Run the code sample locally to generate Payment Tokens for your account and test the integration.
    2Step Two

    Finalize Payment (server-side)

    Once the PaymentToken is created, the last step is to complete the payment by creating a PaymentRequest from your server.

    Use the Pro-Life Payments Create a Payment API to create a PaymentRequest with the PaymentToken created in your UI, the currency, and an amount.

    If the API request is successful you'll receive a PaymentRequest object with all the payment details. If it isn't, you'll receive an Error response indicating why the transaction was not processed.

    cURL
    curl --request POST \
         --url https://api-dev.prolifepayments.com/payments/v1/payment-requests \
         --header 'accept: application/json' \
         --header 'content-type: application/json' \
         --header 'secretKey: sk_your_secret_key' \
         --data '
    {
      "amount": 100,
      "currency": "usd",
      "paymentToken": "pt_your_payment_token"
    }
    '

    Your integration is complete

    You've finished both steps for accepting online payments — securely collecting details and finalizing the charge.

    Your application is now ready to start processing transactions.

    Continue Building

    Next Steps

    Continue your integration journey with these helpful resources.

    Explore Code Samples

    View more implementation examples and recipes to accelerate your development.

    API Reference

    Complete documentation for all endpoints, parameters, and responses.

    Did this page help you?

    Your feedback helps us improve our documentation.

    Last updated 2 months ago

    Easy Integration

    Accept Payments on Your Website

    Whether you need a quick setup or a fully custom build, we have the right integration path for you.

    Fastest Setup

    No-Code Payment Links

    Under 3 minutes

    Create single-product or multi-product payment links with zero coding. Perfect for getting started fast.

    • QR codes for print & in-person
    • Social-share links for any platform
    • Embed or iFrame on your website
    • Custom branding & styling
    Most Popular

    Shopping Cart Plugins

    15-minute install

    Free native plugins for the platforms you already use. Classic checkout flow your customers know and trust.

    • WordPress / WooCommerce
    • Magento integration
    • One-click install & configure
    • Automatic updates & support
    Full Control

    Custom Development

    Tailored to you

    For fully customized builds, integrate directly into your own system with our developer tools.

    • RESTful APIs & webhooks
    • SDKs for major languages
    • Sandbox testing environment
    • Dedicated developer support

    Not sure which option is right for you? We'll walk you through it.

    No sales calls. No pressure.
    Don't worry, we won't make you suffer
    through a sales call
    Give us a little info about your business and we'll curate a personalized 5-minute video you can watch on your own time.
    5 min video
    Personalized for you
    Watch anytime

    Frequently Asked Questions

    Common questions from developers integrating our API.