-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add getOrderFormUrl to getOrderForm to support queryString first #34
Conversation
8ae6b56
to
41f0641
Compare
package.json
Outdated
"mocha": "^1.21.5" | ||
}, | ||
"scripts": { | ||
"test": "./node_modules/karma/bin/karma start --single-run", | ||
"test-watch": "./node_modules/karma/bin/karma start" | ||
"test-watch": "./node_modules/karma/bin/karma karma start" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
karma karma
?
src/checkout.coffee
Outdated
if id is '' | ||
throw new Error "This method requires an OrderForm. Use getOrderForm beforehand." | ||
"#{@_getBaseOrderFormURL()}/#{id}" | ||
if id then "#{@_getBaseOrderFormURL()}/#{id}" else @_getBaseOrderFormURL() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pq essa alteração? Não faz mt sentido, isso deve dar erro.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eu vou pegar o id e se eu não tiver o id eu peço um id chamando a api com @_getBaseOrderFormURL()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eu vou pegar o id e se eu não tiver o id eu peço um id chamando a api com @_getBaseOrderFormURL()
.
Como pode dar erro?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@_getBaseOrderFormURL retorna uma string e nao uma chamada a API
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
41f0641
to
7db7366
Compare
No description provided.