After the payment

After the payment


When your customers successfully complete payments they are redirected to the success URL page that you passed in a request parameter. Typically, this is a page on your website that informs your customer that their payment was successful.

To fulfil the customer’s purchase you can make it in several ways:

Fulfilling purchases manually with the PaySuper Dashboard

Fulfilling purchases automatically with webhooks

Email receipts

Fulfilling purchases with the PaySuper Dashboard

Every customers’ payment is recorded as a new entry in the payments log shown on the Transactions page.

All your customers’ transactions are organised by Products, Dates and other payment parameters.

The transaction details

To manually fulfil the customer’s purchase you can click a specified record to dive into transaction card to see additional details.

Manually refund a purchase

Also, you can manually request a refund a processed transaction from the Transactions page or a transaction card.

Filter transactions and download

If it’s necessary to use the transactions data in an external analytics tool just export the list of transactions per period in an appropriate format pdf, xls or csv.

Fulfilling purchases with webhooks

After the payments, PaySuper can send you webhook events to your server. You can create a handler for the webhook events like a successful payment, refund payment and so on.

Using the handler you can obtain information from the webhook’s object parameter in the payload about the customer and payment. With this comprehensive data, you can execute your server-side code and fulfil the payment.

Configure Webhooks for your Project in PaySuper Dashboard and handle them on your server.

After webhooks enabled, follow this instruction to test your notifications.

For instance, this is the base object representing the webhook event payment.success:

{
  "id": "5d23426ab8b1eea163304202653796fa801081e739d506615ddac583019045f3",
  "type": "notification",
  "event": "payment.success",
  "created_at": "2019-11-16T05:41:05Z",
  "object": {
    "id": "726d9e07-1dc8-4159-8d52-f95941066bc8",
    "transaction": "2978077",
    "object": "order",
    "status": "created",
    "description": "A summary for the purchase",
    "receipt_email": "user.email@example.com",
    "amount": 595,
    "currency": "RUB",
    "user": {
      "id": "5dcf8b24b5a6990001bac2b6",
      "object": "user",
      "email": "user.email@example.com",
      "locale": "ru-RU",
      ...
    },
    "tax": {
      "type": "vat",
      "rate": 0.19,
      "amount": 95,
      "currency": "RUB"
    },
    "method": {
      "title": "Bank card",
      "external_id": "BANKCARD",
      "payment_system_id": "5be2d0b4b0b30d0007383ce5",
      "card": {
        "first6": "400000",
        "last4": "0002",
        "masked": "400000...0002",
        "expiry_month": "11",
        "expiry_year": "2023",
        "brand": "VISA",
        "fingerprint": "$2a$04$9VRouYlBC.qMYQrLpmlXOeGbL2WFZDGGq/KdTeeHSfWkosgJgrWw2",
        "secure3d": true
      },
      ...
    },
    "type": "simple",
    "platform_id": "",
    "receipt_id": "efefc5d3-c2e2-4157-8789-4bfb7c1eec34",
    ...
  }
}

Email receipts

Payment or refund receipts

PaySuper automatically sends email receipts to your customers whenever they make a successful payment or refunded purchase.

It’s required for user to fill in an email field on the Checkout form. Besides, you can pass a customer’s email address when making the API Tokens or API Order requests for payment initiation.

Key-product receipts

For a key-activated product purchase, your customer gets an email with the receipt and an extra email with a purchased product key.

If your customer has purchased several game keys for different DRM platforms, he gets an email per DRM platform with a game key and instructions on how to activate the key on the target DRM store.


Next steps

Testing the Checkout

Verify that your integration with PaySuper Checkout works correctly. Our offered test cards can be used to create payments that produce defined responses for you to test your integration code.

Going live checklist

You can inspect this checklist before going live to ensure you’ve implemented all the significant setup steps.


Questions?

Sales

Our salespeople are pleasant and friendly. Leave your contact details, and we’ll be back to you in no time.

Support

We are always happy to help with a code, improve a guide or consider a feature.

GitHub

The PaySuper Checkout Form, the JS SDK and even the server are available as a source code on our GitHub. You’re welcome to explore the code and help us make PaySuper even better.


Not a developer?

Our engineers will help you integrate PaySuper into your existing e-commerce platform, a website or a game in the best possible way. If you want something very special and crazy custom yet don’t have a suitable programmer available nearby - talk to us! We won’t let down a PaySuper user. We will try to help you in every possible way. We can even hire a programmer for you!