Skip to content

Instantly share code, notes, and snippets.

View dlm423's full-sized avatar

Dan dlm423

  • NYC
View GitHub Profile
Thanks for this script, seems quite useful! I am having an issue, my <a> tag is redirecting me to another page, as opposed to submitting the DELETE request. I asked a question on Stack Overflow and hope to get some help in case anyone else runs into this issue. http://stackoverflow.com/questions/25695137/delete-request-outside-of-form-laravel/25695164
@dlm423
dlm423 / gist:8011739
Created December 17, 2013 20:10
new_transaction function
function new_transaction($cc_token=NULL, $total=NULL, $order_id=NULL){
$customer = \Balanced\Customer::get('/v1/customers/CU7guBPfer2uEkOEopU0KgXl');
$transaction=$customer->debit($total*100, array('MerchantFuse.com'), "MerchantFuse Order #".$order_id, $cc_token);
return $transaction->uri;
}
//Note: I tried both of the following as values for $cc_token
// /v1/customers/CU7guBPfer2uEkOEopU0KgXl/cards/CC1KxhXOuHYrwGR8opxLuKjQ