BTPayPalRequest.m 620 B

123456789101112131415161718192021222324252627282930
  1. #import "BTPayPalRequest.h"
  2. @implementation BTPayPalRequest
  3. - (instancetype)init
  4. {
  5. self = [super init];
  6. if (self) {
  7. _shippingAddressRequired = NO;
  8. _offerCredit = NO;
  9. _shippingAddressEditable = NO;
  10. _intent = BTPayPalRequestIntentAuthorize;
  11. _userAction = BTPayPalRequestUserActionDefault;
  12. _landingPageType = BTPayPalRequestLandingPageTypeDefault;
  13. }
  14. return self;
  15. }
  16. - (instancetype)initWithAmount:(NSString *)amount {
  17. if (amount == nil) {
  18. return nil;
  19. }
  20. if (self = [self init]) {
  21. _amount = amount;
  22. }
  23. return self;
  24. }
  25. @end