Carouseller
Home
  • 🚀Getting started
    • Payment glossary
  • Cashier integration
    • Key obtaining
    • Cashier opening
      • iFrame
      • Native version
    • Cashier opening 2.0
      • iFrame
    • Payment processing
    • Webhooks
      • Successful transaction conditions
      • Notification parameters
    • Report request
    • Tracking user's activity in the cashier
    • User reset conditions
    • Signature
  • Payment API
    • API 1.0
      • Key obtaining
      • Deposit
      • Payout
      • Transaction status
    • API 2.0
      • Payment Page Integration
      • Transaction statuses
    • 3DS handler
  • Transaction types
  • Payment methods
  • Test card numbers
Powered by GitBook
On this page
  1. Cashier integration

Tracking user's activity in the cashier

From the Cashier frame to the external page information about the following user actions is transmitted:

✔ cashier frame size

✔ active tab (deposit, pay-out, history)

✔ active PS

✔ change the values of all fields: accounts, phones, prefixes, except secrets

✔ changing the values of some switches: sum, save the details

✔ send request "pay"

When a user performs an action, the script collects all available parameters and send them to the parent window in the following format:

{ 
    "action": action, 
    "action_info": {[ 
        parameter: value
    ]} 
}

Valid values for action:

Action
Description
Example

select_menu

choose menu item

{"action":"select_menu","action_info":{"width":660,"height":238,"select_menu":"deposit","payment_system":"undefined"}}

select_payment_system

choose payment system

{"action":"select_payment_system","action_info":{"width":660,"height":732,"select_menu":"deposit","payment_system":"501","amount":"custom","custom_amount":6,"amount_button_index":5,"currency":"USD","remember_purse":"0"}}

amount_change

payment amount change

{"action":"amount_change","action_info":{"width":660,"height":732,"select_menu":"deposit","payment_system":"501","amount":"custom","custom_amount":6,"amount_button_index":5,"currency":"USD","remember_purse":"0"}}

purse_change

purse number change

{"action":"purse_change","action_info":{"width":660,"height":963,"select_menu":"deposit","payment_system":"2","amount":"custom","custom_amount":2000,"amount_button_index":5,"currency":"USD","wm_purse_prefix":"WME"}}

open_iframe

payment method opening in the Cashier after sending the form

{"action":"open_iframe", "action_info": {"width":1902, "height":596, "select_menu":"payout", "payment_system":2, "amount":"678", "currency":"USD", "purse":"897987879878", "wm_purse_prefix":"Z", "remember_purse":"1"}}

submit

opening the payment method in the external tab after sending the form

{"action":"submit", "action_info": {"width":1902, "height":596, "select_menu":"payout", "payment_system":2, "amount":"678", "currency":"USD", "purse":"897987879878", "wm_purse_prefix":"Z", "remember_purse":"1"}}

Valid values for action_info:

Parameter
Type
Description
Example
Valid values

width

int

iframe width

1902

height

int

iframe height

599

select_menu

string

chosen menu item

"payout"

"payout", "deposit", "financeHistory"

payment_system

int

chosen payment system

2

widget number

amount

string

chosen radiobutton amount

"678"

[0-9]{1,10} or "custom"

custom_amount

int

amount, entered by user

876

[0-9]{1,10}

currency

string

payment currency

"USD"

any iso 4217 alpha-3 currency value

purse

string

phone number or account number for selected payment system

"+44985783998"

phone or account number

wm_purse_prefix

string

purse type webmoney prefix

"Z"

"Z", "R", "E"

wm_is_invoice

string

webmoney payment by the invoice chosen

"1"

"0", "1"

wmid

string

webmoney identifier

"214231242123"

[0-9]{12}

net_account

string

neteller account

"214231242123" or "name@example.com"

email or [0-9]{12}

remember_purse

string

Save purse for instant payment

"1"

"0" or "1"

stored_purses

string

Using saved purse for instant payment

"1"

"0" or "1"

PreviousReport requestNextUser reset conditions

Last updated 1 year ago

Page cover image