omise / omise-ruby

Omise Ruby Library
https://docs.opn.ooo
MIT License
40 stars 20 forks source link

Add expire method for Charge #40

Closed som-m closed 3 years ago

som-m commented 3 years ago

Summary

QA

You should be able to set a charge to expire.

  1. Retrieve a charge charge = Omise::Charge.retrieve("chrg_test_5msj6vd7vkpm1o7c8vn")

  2. Set a charge to expire charge.expire

  3. Check whether the charge has been set to expire charge.expired?