Skip to content

Instantly share code, notes, and snippets.

@StaverDmitry
Created May 12, 2017 15:59
Show Gist options
  • Save StaverDmitry/01b450835748ea04b3220d0d5fabe83b to your computer and use it in GitHub Desktop.
Save StaverDmitry/01b450835748ea04b3220d0d5fabe83b to your computer and use it in GitHub Desktop.
Payment.create({:enquiry_id=>enquiry_id,:pay_ref=>charge.id,:amount=>amount,:card_fee=>card_fee,:card_holder=>charge.source.name ,:is_refund=>false,:last_four=>charge.source.last4,:customer_id=>customer_id,:charge_by=>@currentUser,:pay_type=>payMethod,:stripe_fee =>balance.fee})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment