Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var askBuyVariables = function(o) {
- var buy = o.req.session.currency_to_buy;
- if (buy == "Euro") {
- if (!o.req.session.bank_account_number) {
- askForSessionVariable(o, 'bank_account_number', 'Please enter your bank account number', function(o) {
- if (!o.req.session.bank_name) {
- askForSessionVariable(o, 'bank_name', 'Please enter your bank name', function(o) {
- if (!o.req.session.bank_recipient) {
- askForSessionVariable(o, 'bank_recipient', 'Please enter your recipient name', function (o) {
- if (typeof o.req.session.bank_recipient !== "undefined") {
- askForSessionVariable(o, 'bank_reference', '(optional) Please enter your reference number',
- function (o) {
- askForSessionVariable(o, 'bank_reference', '(optional) Please enter your '
- + 'reference number', function(o) {
- });
- }
- );
- }
- });
- }
- });
- }
- });
- }
- }
- o.next(o);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement