Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var askBuyVariables = function(o) {
  2.     var buy = o.req.session.currency_to_buy;
  3.     if (buy == "Euro") {
  4.         if (!o.req.session.bank_account_number) {
  5.             askForSessionVariable(o, 'bank_account_number', 'Please enter your bank account number', function(o) {
  6.                 if (!o.req.session.bank_name) {
  7.                     askForSessionVariable(o, 'bank_name', 'Please enter your bank name', function(o) {
  8.                         if (!o.req.session.bank_recipient) {
  9.                             askForSessionVariable(o, 'bank_recipient', 'Please enter your recipient name', function (o) {
  10.                                 if (typeof o.req.session.bank_recipient !== "undefined") {
  11.                                     askForSessionVariable(o, 'bank_reference', '(optional) Please enter your reference number',
  12.                                         function (o) {
  13.                                             askForSessionVariable(o, 'bank_reference', '(optional) Please enter your '
  14.                                                 + 'reference number', function(o) {
  15.  
  16.                                             });
  17.                                         }
  18.                                     );
  19.                                 }
  20.                             });
  21.                         }
  22.                     });
  23.                 }
  24.             });
  25.         }
  26.     }
  27.     o.next(o);
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement