Skip to content

Instantly share code, notes, and snippets.

View jknipp's full-sized avatar

Jared Knipp jknipp

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jknipp on github.
  • I am jknipp (https://keybase.io/jknipp) on keybase.
  • I have a public key ASDTSErVi6HYVK4VBxZManPsfzc0ydBV4x0s5n-Gw37a9Ao

To claim this, I am signing this object:

@jknipp
jknipp / delivery.json
Last active April 18, 2024 21:13
Pedidosya Cybersource Deliver body
// Replace instances of {{payment_method_token}} and {{certificate_token}} with the payment method token and certificate token
{
"delivery": {
"payment_method_token": "{{payment_method_token}}",
"url": "https://ics2wstesta.ic3.com/commerce/1.x/transactionProcessor",
"body": "{{#xml_dsig}}{{#private_key}}{{certificate_token}}{{/private_key}},<?xml version=\"1.0\" encoding=\"UTF-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Header><wsse:Security xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\" soap:mustUnderstand=\"1\"><wsse:BinarySecurityToken EncodingType=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary\" ValueType=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3\" wsu:Id=\"X509-C2457C93F643278DC9156537520773341\">{{#binary
class Account < ActiveRecord::Base
set_primary_key "AccountId"
belongs_to :bank, :foreign_key => 'CompanyId'
scope :mcm_bank_and_account_number, lambda { |mcm_bank_id, acct|
joins(:bank).
where("bank.MCMBankNumber = ? AND account.AccountNumber = ?", mcm_bank_id, acct).merge(Bank.mcm_bank)
}