Closed emilylittle closed 2 months ago
This is a hacky fix intended to address our specific use case. We need to send an array of length 1 of line items to spreedly https://github.com/tremendous-rewards/core/blob/master/app/models/spreedly_payment.rb#L402, but their gem doesn't currently support that. This code adds a clause so that we will properly process arrays of length 1.
This is a hacky fix intended to address our specific use case. We need to send an array of length 1 of line items to spreedly https://github.com/tremendous-rewards/core/blob/master/app/models/spreedly_payment.rb#L402, but their gem doesn't currently support that. This code adds a clause so that we will properly process arrays of length 1.