This file contains 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
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 |
This file contains 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
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 |