how can i save metadata to Pay::Charge? #443
-
Hey @excid3 I have the following record Thanks in advance :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
This should work? Pay::Charge.update(metadata: {order_id: 1}) |
Beta Was this translation helpful? Give feedback.
-
If you are using Jumpstart, you can also modify the following method, which can be found in the def stripe_attributes(*args)
{
address: billing_address&.to_stripe,
metadata: {
key: value
}
}.compact
end This is triggered and sent to Stripe as soon as someone clicks on a plan, prior to actually entering their payment information. |
Beta Was this translation helpful? Give feedback.
This should work?