Closed som-m closed 3 years ago
You should be able to set a charge to expire.
Retrieve a charge charge = Omise::Charge.retrieve("chrg_test_5msj6vd7vkpm1o7c8vn")
charge = Omise::Charge.retrieve("chrg_test_5msj6vd7vkpm1o7c8vn")
Set a charge to expire charge.expire
charge.expire
Check whether the charge has been set to expire charge.expired?
charge.expired?
Summary
QA
You should be able to set a charge to expire.
Retrieve a charge
charge = Omise::Charge.retrieve("chrg_test_5msj6vd7vkpm1o7c8vn")
Set a charge to expire
charge.expire
Check whether the charge has been set to expire
charge.expired?