Skip to content

Commit 5160efb

Browse files
committed
Merge branch 'main' of github.com:pay-rails/pay
2 parents 9383e8b + 4a6955e commit 5160efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/5_charges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Pay allows you to make one-time charges to a customer.
77
To charge a customer, you need to assign a payment method token before you can charge them.
88

99
```ruby
10-
@user.payment_processor.payment_method_token = params[:payment_method_token]
10+
@user.payment_processor.update_payment_method(params[:payment_method_token])
1111
@user.payment_processor.charge(15_00) # $15.00 USD
1212
```
1313

0 commit comments

Comments
 (0)