We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9383e8b + 4a6955e commit 5160efbCopy full SHA for 5160efb
docs/5_charges.md
@@ -7,7 +7,7 @@ Pay allows you to make one-time charges to a customer.
7
To charge a customer, you need to assign a payment method token before you can charge them.
8
9
```ruby
10
-@user.payment_processor.payment_method_token = params[:payment_method_token]
+@user.payment_processor.update_payment_method(params[:payment_method_token])
11
@user.payment_processor.charge(15_00) # $15.00 USD
12
```
13
0 commit comments