Created
November 30, 2018 20:19
-
-
Save Jmzp/70296a68eebffc1fe02031342c0a3ac8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if transaction.entity.present? | |
entity = transaction.entity | |
if entity.type == 4 | |
data_link[:datos_adicionales] = { 'Oferta' => entity.name, 'Descripción' => entity.description } | |
else | |
data_link[:datos_adicionales] = { 'Descripción' => Pay::PaymentezAdapter.format_charge_description(customer) } | |
end | |
data_link | |
else | |
data_link[:datos_adicionales] = { 'Descripción' => Pay::PaymentezAdapter.format_charge_description(customer) } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment