Skip to content

Payments source cann't be blank #4067

Discussion options

You must be logged in to vote

Your payment method should implement source_required? in order for Solidus to identify that (if this is the case) your payments won't be associated with some kind of source record representing the payment method.

Here's where that's called in the Payment model: https://github.com/solidusio/solidus/blob/master/core/app/models/spree/payment.rb#L185-L187

Here's the validation that's failing: https://github.com/solidusio/solidus/blob/master/core/app/models/spree/payment.rb#L41

Here's an example of a payment method that doesn't require a source: https://github.com/solidusio/solidus/blob/master/core/app/models/spree/payment_method/check.rb#L32-L34

All that said, you likely want to redirect for …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dominicsanto
Comment options

Answer selected by dominicsanto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants