View Source Paystack.Charge (Paystack v0.7.0)

The Charge API allows you to configure payment channel of your choice when initiating a payment.

https://paystack.com/docs/api/#charge

Link to this section Summary

Functions

When you get "pending" as a charge status or if there was an exception when calling any of the /charge endpoints, wait 10 seconds or more, then make a check to see if its status has changed. Don't call too early as you may get a lot more pending than you should.

Initiate a payment by integrating the payment channel of your choice.

Submit address to continue a charge

Submit Birthday when requested

Submit OTP to complete a charge

Submit Phone when requested

Submit PIN to continue a charge

Link to this section Functions

Link to this function

check_pending(charge_reference)

View Source

Specs

check_pending(String.t()) :: Paystack.Api.t()

When you get "pending" as a charge status or if there was an exception when calling any of the /charge endpoints, wait 10 seconds or more, then make a check to see if its status has changed. Don't call too early as you may get a lot more pending than you should.

Specs

create(map()) :: Paystack.Api.t()

Initiate a payment by integrating the payment channel of your choice.

Specs

submit_address(map()) :: Paystack.Api.t()

Submit address to continue a charge

Specs

submit_birthday(map()) :: Paystack.Api.t()

Submit Birthday when requested

Specs

submit_otp(map()) :: Paystack.Api.t()

Submit OTP to complete a charge

Specs

submit_phone(map()) :: Paystack.Api.t()

Submit Phone when requested

Specs

submit_pin(map()) :: Paystack.Api.t()

Submit PIN to continue a charge