Search code examples
ruby-on-rails-3ruby-on-rails-pluginscredit-cardactivemerchante-commerce

Rails Activermerchant and Trustcommerce Vault BillingID question


I am building a rails app using the wonderful activemerchant gem to save credit card information in Trustcommerce Citadel for future transaction. I am currently able to send in hash of billing address and credit card information to save in Citadel, but I am kind of puzzled as to how I might retrieve the BillingID that is generated and saved in Citadel for future use. That is, I want to retrieve the BillingID to save in my own database so that the user is able to locate his/her information in the future. Has anybody had experience with this? Thanks


Solution

  • I got it to work.

    store() method returns "billingid" from Trustcommerce Vault for retrieval. use params['billingid'] to retrieve the id.