Name of the coupon displayed to customers on, for instance invoices, or receipts. By default the id is shown if name is not set.
I would like a prettier name such as 20% off, forever to appear in invoices and receipts and I cannot do it with the id only.
I would appreciate a review and a new release. 🤗
I have updated tests to include this extra attribute. I have also tested by creating some coupons in test Stripe environment with and without name parameters by using gem "stripe-rails", git: "https://github.com/ZilvinasKucinskas/stripe-rails.git", branch: "feature/support-name-in-coupons" in the Gemfile. It works.
Stripe has an optional
name
parameter while creating coupons. From documentation:I would like a prettier name such as
20% off, forever
to appear in invoices and receipts and I cannot do it with the id only.I would appreciate a review and a new release. 🤗
I have updated tests to include this extra attribute. I have also tested by creating some coupons in test Stripe environment with and without
name
parameters by usinggem "stripe-rails", git: "https://github.com/ZilvinasKucinskas/stripe-rails.git", branch: "feature/support-name-in-coupons"
in the Gemfile. It works.