balanced-payments

Error: uncaught exception: Invalid marketplace uri

空扰寡人 提交于 2020-01-16 11:25:30
问题 well, it looks like I'm the first in the S.O. community to post a question with a balancedpayments tag. I recently began developing with balancedpayments. I created a test marketplace, added a "webhook" uri still pending, in the form of: https://www.mydomain.com/main/balancedpayments (maybe this is the problem?) referring to documentation url [balanced.js][1] I added this to my page head section: <script type="text/javascript" src="https://js.balancedpayments.com/v1/balanced.js"></script>

Obtain credits for a specific day

牧云@^-^@ 提交于 2020-01-16 10:00:22
问题 I can use the following to obtain a list of all my credits <?php $marketplace = Balanced\Marketplace::mine(); $credits = $marketplace->credits->query()->all(); ?> I can modify this to obtain the credits for a specific customer $credits = $customer->credits->query()->all(); Note the chance is from querying $marketplace to querying $customer. Can I modify all() or by other means obtain credits with different parameters. e.g. Credits in the last 24 hour or for a specific day,... I know I can get

Balanced Payments - Documentation on obtaining references to existing buyer and merchant accounts

丶灬走出姿态 提交于 2019-12-23 12:44:08
问题 How would I get a reference to buyer and merchant accounts that have already been created? I'm only finding examples for creating buyer and merchant accounts. I'm not finding any examples on getting that information back for reuse. Is there existing documentation on this or just what's in the rdoc? 回答1: From the reference to rdoc I'll assume you're using the Ruby gem here. There are two primary ways to lookup accounts using a unique identifier, by email_address : account = Balanced::Account

Rails form submit handler not being executed

青春壹個敷衍的年華 提交于 2019-12-20 06:03:31
问题 I'm trying to integrate Balanced Payments to allow users to save their credit card information for use at a later time. The relevant view code and javascript files are as follows, but I'm having trouble with the submit handler defined in the javascript file. balanced_card.js var marketplaceUri = '{MY MARKETPLACE URI}'; var requestBinUrl = '{FORM SUBMISSION PATH}' var debug = function(tag, content) { $('<' + tag + '>' + content + '</' + tag + '>').appendTo('#result'); }; try { balanced.init

Balanced Payment integration for iOS

两盒软妹~` 提交于 2019-12-13 04:24:16
问题 I am trying to do the payment using https://www.balancedpayments.com/ . They have their iPhone library for this https://github.com/balanced/balanced-ios . The problem is that there is not enough documentation on how the Balanced.framework has to be added in the XCode 4.5 project? 回答1: Download the Balanced framework. Add Balanced.framework to your project and to Build Phases -> Link Binary With Libraries. Add CoreTelephony.framework to Build Phases -> Link Binary With Libraries. Usage:

Balanced - not getting a response from marketplace.customers.create using node library

被刻印的时光 ゝ 提交于 2019-12-11 20:37:01
问题 I'm trying to integrate Balanced payments into a node app but for some reason I'm getting an undefined response when creating a customer. The customer is being created in the marketplace, however. balanced.configure('ak-test-2dE1FyvrskNw4o7CiAsGvYOgD7aPSb0ww'); var customer = balanced.marketplace.customers.create({ email: userAccount.emails[0].address, name: userAccount.username }); console.log('customer' + customer.ID); Returns customerundefined To my console. Any help would be appreciated!

JS error on balanced.init()

谁说胖子不能爱 提交于 2019-12-10 22:42:27
问题 Uncaught TypeError: Cannot use 'in' operator to search for 'debug' in undefined a.balanced.initbalanced.js:1https://js.balancedpayments.com/v1/balanced.js (anonymous function) <script type="text/javascript" src=" https://js.balancedpayments.com/v1/balanced.js"></script> <script> //balanced.init('/v1/marketplaces/TEST-MP798-194-2357'); //balanced.init('/marketplaces/TEST-MP798-194-2357'); balanced.init('TEST-MP798-194-2357'); </script> Getting the same error on each of the different calls. Is

Rails form submit handler not being executed

六眼飞鱼酱① 提交于 2019-12-02 09:24:42
I'm trying to integrate Balanced Payments to allow users to save their credit card information for use at a later time. The relevant view code and javascript files are as follows, but I'm having trouble with the submit handler defined in the javascript file. balanced_card.js var marketplaceUri = '{MY MARKETPLACE URI}'; var requestBinUrl = '{FORM SUBMISSION PATH}' var debug = function(tag, content) { $('<' + tag + '>' + content + '</' + tag + '>').appendTo('#result'); }; try { balanced.init(marketplaceUri); } catch (e) { debug('code', 'balanced.init error!'); } function balancedCallback

I'm using Meteor, what do I need to do to wait for a promise to be returned from an API call?

我只是一个虾纸丫 提交于 2019-11-29 16:26:12
if (Meteor.isClient) { Template.hello.events({ 'click input': function () { //create a new customer Meteor.call('createCustomer', function (error, result) { console.log("Error: " + error + " Result: " + result); } ); } }); } if (Meteor.isServer) { Meteor.methods({ createCustomer: function () { try { balanced.configure('MyBalancedPaymentsTestKey'); var customer = Meteor._wrapAsync(balanced.marketplace.customers.create()); var callCustomer = customer(); var returnThis = console.log(JSON.stringify(callCustomer, false, 4)); return returnThis; } catch (e) { console.log(e); var caughtFault = JSON

I'm using Meteor, what do I need to do to wait for a promise to be returned from an API call?

江枫思渺然 提交于 2019-11-28 11:13:40
问题 if (Meteor.isClient) { Template.hello.events({ 'click input': function () { //create a new customer Meteor.call('createCustomer', function (error, result) { console.log("Error: " + error + " Result: " + result); } ); } }); } if (Meteor.isServer) { Meteor.methods({ createCustomer: function () { try { balanced.configure('MyBalancedPaymentsTestKey'); var customer = Meteor._wrapAsync(balanced.marketplace.customers.create()); var callCustomer = customer(); var returnThis = console.log(JSON