BepaidEx v0.9.1 Bepaid.Payment

A structure to represent bePaid API request payload.

Example structure:

%{
  amount: 100,
  currency: "BYN",
  description: "Test transaction",
  tracking_id: "your_uniq_number",
  language: "en",
  credit_card: %{
    token: "40bd001563085fc35165329ea1ff5c5ecbdbbeef40bd001563085fc35165329e"
  },
  additional_data: %{
    receipt_text: ["First line", "Second Line"]
  },
  customer: %{
    ip: "127.0.0.1",
    email: "john@example.com"
  }
}

More info: https://docs.bepaid.by/ru/gateway/transactions/payment

Link to this section Summary

Functions

Set or generate tracking ID for the payment. Required by bePaid API

Update additional data information in a Bepaid.Payment struct

Update credit card information in a Bepaid.Payment struct

Update customer information in a Bepaid.Payment struct

Link to this section Functions

Link to this function set_tracking_id(payment)

Set or generate tracking ID for the payment. Required by bePaid API.

Link to this function set_tracking_id(payment, tracking_id)
Link to this function update_additional_data(payment, attrs)

Update additional data information in a Bepaid.Payment struct.

Link to this function update_credit_card(payment, attrs)

Update credit card information in a Bepaid.Payment struct.

Link to this function update_customer(payment, attrs)

Update customer information in a Bepaid.Payment struct.