Пример #1
0
 private PayPalWrapper getWrapper(ProfilePayPalDTO profile) {
   if (wrapper == null) {
     this.profilePayPal = profile;
     Profile prof =
         new BaseProfile.Builder(profile.getUserName(), profile.getPassword())
             .signature(profile.getSignature())
             .build();
     Environment env = PayPalWrapper.getEnvironment(profile.getEnvironment());
     wrapper = new PayPalWrapper(env, prof);
   }
   return wrapper;
 }