Skip to content

v1.5.0

Latest

Choose a tag to compare

@leafo leafo released this 13 Jul 18:58

Changes

Stripe client

  • Add Payment Intents methods: list_payment_intents, get_payment_intent, create_payment_intent, update_payment_intent, confirm_payment_intent, capture_payment_intent, cancel_payment_intent
  • Add Setup Intents methods: list_setup_intents, get_setup_intent, create_setup_intent, update_setup_intent, confirm_setup_intent, cancel_setup_intent
  • Add Payment Methods methods: get_payment_method, update_payment_method, list_customer_payment_methods, attach_payment_method, detach_payment_method
  • Add get_confirmation_token
  • Add get_checkout_session
  • Add refund_payment_intent for refunding a payment intent directly
  • refund_charge now takes an optional table of additional parameters (eg. amount, reason)
  • Add test cases covering the new methods

HTTP client

  • The default HTTP provider is now lapis.http when running inside of nginx/OpenResty (previously lapis.nginx.http)
  • The default HTTP provider outside of nginx is now socket.http instead of ssl.https, letting LuaSocket handle HTTPS detection

Full Changelog: v1.4.0...v1.5.0