Skip to content

Commit

Permalink
Updated SDK and Test app to 1.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tfctrifork committed May 11, 2017
1 parent f6a62ba commit 0c0d66a
Show file tree
Hide file tree
Showing 11 changed files with 430 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The MobilePay SDK enables your app to receive payments through the MobilePay app
|Platform|Version|
|:--------|:---|
|Android| 1.8.0|
|iOS| 1.8.0|
|iOS| 1.8.1|
|WP| 1.8.0|

## Support
Expand Down
17 changes: 17 additions & 0 deletions sdk/iOS/1.8.1/MobilePayManager/MobilePayCancelledPayment.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// MobilePayCancelledPayment.h
// MobilePayManager
//
// Created by Lars Elgaard Mikkelsen on 08/12/2015.
// Copyright © 2015 DanskeBank A/S. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MobilePayCancelledPayment : NSObject

@property (nonatomic, strong, readonly) NSString *orderId;

- (instancetype)initWithOrderId:(NSString *)orderId;

@end
339 changes: 339 additions & 0 deletions sdk/iOS/1.8.1/MobilePayManager/MobilePayManager.h

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions sdk/iOS/1.8.1/MobilePayManager/MobilePayPayment.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
//
// MobilePayPayment.h
// MobilePayManager
//
// Created by Thomas Fekete Christensen on 27/07/15.
// Copyright (c) 2015 DanskeBank A/S. All rights reserved.
//

#import <Foundation/Foundation.h>

/**
* Contains information about the payment being processed.
*/
@interface MobilePayPayment : NSObject

// Required
@property (nonatomic, strong) NSString *orderId;
@property (nonatomic) float productPrice;


// Optional
@property (nonatomic, strong) NSString *productName DEPRECATED_ATTRIBUTE;
@property (nonatomic, strong) UIImage *productImage DEPRECATED_ATTRIBUTE;
@property (nonatomic, strong) NSString *receiptMessage DEPRECATED_ATTRIBUTE;
@property (nonatomic, strong) NSString *bulkRef;

/**
* Initialize payment object with required values
* orderId: Text with a max length of 50 characters. Sent through the purchase flow and returned to your app when the payment is completed so that you are able to deliver the right product.
* productName: obsolete
* productPrice: price of the product
*/
- (MobilePayPayment *)initWithOrderId:(NSString *)orderId productPrice:(float)productPrice;

@end
21 changes: 21 additions & 0 deletions sdk/iOS/1.8.1/MobilePayManager/MobilePaySuccessfulPayment.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//
// MobilePaySuccessfulPayment.h
// MobilePayManager
//
// Created by Lars Elgaard Mikkelsen on 23/09/15.
// Copyright © 2015 DanskeBank A/S. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MobilePaySuccessfulPayment : NSObject

@property (nonatomic, strong, readonly) NSString *orderId;
@property (nonatomic, strong, readonly) NSString *transactionId;
@property (nonatomic, strong, readonly) NSString *signature;
@property (nonatomic, readonly) float productPrice;
@property (nonatomic, readonly) float amountWithdrawnFromCard;

- (instancetype)initWithOrderId:(NSString *)orderId transactionId:(NSString *)transactionId signature:(NSString *)signature productPrice:(float)productPrice amountWithdrawnFromCard:(float)amountWithdrawnFromCard;

@end
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
2689D46419CAD31400B63C07 /* ViewHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 2689D46319CAD31400B63C07 /* ViewHelper.m */; };
26AC87BE19D036C3002D6AD9 /* AboutViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 26AC87B819D036C3002D6AD9 /* AboutViewController.m */; };
26AC87C019D036C3002D6AD9 /* ProductListViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 26AC87BA19D036C3002D6AD9 /* ProductListViewController.m */; };
50059CE71D12A29A001B72FE /* libMobilePayManager1.8.0.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 50059CE61D12A29A001B72FE /* libMobilePayManager1.8.0.a */; };
505D5C1A1B0367DD00C9AA44 /* Product.m in Sources */ = {isa = PBXBuildFile; fileRef = 505D5C191B0367DD00C9AA44 /* Product.m */; };
BB786FC81EC4841B001E05AF /* libMobilePayManager1.8.1.a in Frameworks */ = {isa = PBXBuildFile; fileRef = BB786FC71EC4841B001E05AF /* libMobilePayManager1.8.1.a */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -41,22 +41,22 @@
26AC87B919D036C3002D6AD9 /* ProductListViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ProductListViewController.h; sourceTree = "<group>"; };
26AC87BA19D036C3002D6AD9 /* ProductListViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ProductListViewController.m; sourceTree = "<group>"; };
26AC87BD19D036C3002D6AD9 /* Product.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Product.h; sourceTree = "<group>"; };
50059CE61D12A29A001B72FE /* libMobilePayManager1.8.0.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libMobilePayManager1.8.0.a; sourceTree = "<group>"; };
505158D31C17088C002631D2 /* MobilePayCancelledPayment.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MobilePayCancelledPayment.h; sourceTree = "<group>"; };
505158D51C17088C002631D2 /* MobilePayPayment.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MobilePayPayment.h; sourceTree = "<group>"; };
505158D61C17088C002631D2 /* MobilePaySuccessfulPayment.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MobilePaySuccessfulPayment.h; sourceTree = "<group>"; };
505158D81C1708D4002631D2 /* MobilePayManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MobilePayManager.h; sourceTree = "<group>"; };
505D5C191B0367DD00C9AA44 /* Product.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Product.m; sourceTree = "<group>"; };
BB786FC71EC4841B001E05AF /* libMobilePayManager1.8.1.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libMobilePayManager1.8.1.a; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
2689D41819CAC79100B63C07 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
BB786FC81EC4841B001E05AF /* libMobilePayManager1.8.1.a in Frameworks */,
2689D45819CACF8C00B63C07 /* CoreFoundation.framework in Frameworks */,
2689D45619CACE8C00B63C07 /* CoreGraphics.framework in Frameworks */,
50059CE71D12A29A001B72FE /* libMobilePayManager1.8.0.a in Frameworks */,
2689D45419CACE7800B63C07 /* UIKit.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -119,7 +119,7 @@
2689D44719CAC83200B63C07 /* Externals */ = {
isa = PBXGroup;
children = (
50059CE61D12A29A001B72FE /* libMobilePayManager1.8.0.a */,
BB786FC71EC4841B001E05AF /* libMobilePayManager1.8.1.a */,
505158D81C1708D4002631D2 /* MobilePayManager.h */,
505158D31C17088C002631D2 /* MobilePayCancelledPayment.h */,
505158D51C17088C002631D2 /* MobilePayPayment.h */,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(

//ReturnSeconds - this is just an example, but our recommendation is to set it set it low.
//[[MobilePayManager sharedInstance]setReturnSeconds:2];

//ServerCall Callback URL - see MobilePayManager.h file for comments on to use it, and it's purpose.
//[[MobilePayManager sharedInstance] setServerCallbackUrl:@"https://example.com/appswitchstatus?TimeStamp=2015-08-27T15:36:42.939&OrderId=34666357&MerchantId=APPDK1175851001&TransactionId=1234567890&Amount=00001500&Currency=DKK&Country=DK&PaymentStatus=RES&ReturnCode=00&ReasonCode=00"];


return YES;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,16 +322,9 @@ DEPRECATED_MSG_ATTRIBUTE("Use setupWithMerchantId:(NSString * __nonnull)merchant
@property (nonatomic, readonly) NSString * __nonnull signatureVersion;

/**
*Set the optional Server Callback URL for server-to-server communication in order to receive instant feedback on current transaction. This enables merchants to react accordingly.
*
*Max 255 characters and it must be an HTTPS:// endpoint
*
*Example:
*[[MobilePayManager sharedInstance] setServerCallbackUrl:@"https://example.com/appswitchstatus"];
*
* ServerCallbackUrl is deprecated.
*/

-(void)setServerCallbackUrl:(NSString * __nonnull)serverCallbackUrl;
-(void)setServerCallbackUrl:(NSString * __nonnull)serverCallbackUrl DEPRECATED_MSG_ATTRIBUTE("ServerCallbackUrl is deprecated, setting this property will have no effect.");

/**
* for internal development purpose only
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "iphone",
Expand Down

0 comments on commit 0c0d66a

Please sign in to comment.