Authorize a card intent
POST/payments/card/{id}/authorize
POST
/payments/card/{id}/authorize
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Example
pi_card_9Z3K01ARZ3NDEKTSV4RRFFQ69G5FAVPayment intent ID
Request Bodyrequired
Section titled “Request Bodyrequired”object
create_token
Set to true to request a network token on the provided card data
boolean
key_id
required
string
layout
required
Array<object>
object
field
required
string
len
required
integer format: int32
payload
required
Encrypted card details.
string
Example
eyJhbGciOiJSU0Et...ENCRYPTED...Responses
Section titled “Responses”Authorized. With capture_method: automatic, the intent proceeds directly to committed; with manual it rests at authorized awaiting commit.
object
amount
required
A monetary amount in the currency’s minor units (e.g. cents for USD).
integer format: int64
Example
1000amount_captured
required
A monetary amount in the currency’s minor units (e.g. cents for USD).
integer format: int64
Example
1000amount_refunded
required
A monetary amount in the currency’s minor units (e.g. cents for USD).
integer format: int64
Example
1000capture_method
required
string
created
required
integer format: int64
currency
required
Currently supported currencies by Paygasus Pay
string
Example
USDdescription
string | null
id
required
string
Example
pi_card_9Z3K01ARZ3NDEKTSV4RRFFQ69G5FAVlivemode
required
boolean
metadata
required
object
key
additional properties
string
statement_descriptor
string | null
status
required
string
status_at
If is in state ‘Created’, will be empty. status_at indicates state change occurences. Created is the initial state
integer | null format: int64
updated
required
integer format: int64
No such payment intent
object
error
required
object
code
required
string
message
required
string
param
string | null
type
required
string
Intent is not in created
object
error
required
object
code
required
string
message
required
string
param
string | null
type
required
string
Processor unreachable; safe to retry
object
error
required
object
code
required
string
message
required
string
param
string | null
type
required
string
