Skip to content

Commit

Permalink
Fixed invalid amount issue with shipping
Browse files Browse the repository at this point in the history
  • Loading branch information
OsamaRabie committed Apr 3, 2023
1 parent 341b716 commit d395bb3
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
12 changes: 6 additions & 6 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ PODS:
- EditableTextInsetsTextFieldV2 (0.0.2):
- TapAdditionsKitV2
- Fabric (1.10.2)
- goSellSDK (2.3.18):
- goSellSDK/Core (= 2.3.18)
- goSellSDK/Core (2.3.18):
- goSellSDK (2.3.20):
- goSellSDK/Core (= 2.3.20)
- goSellSDK/Core (2.3.20):
- CardIODynamic
- EditableTextInsetsTextFieldV2
- SwiftyRSA
Expand All @@ -32,7 +32,7 @@ PODS:
- TapApplicationV2 (0.0.2):
- TapAdditionsKitV2
- TapBundleLocalization (1.0.3)
- TapCardVlidatorKit-iOS (1.0.18)
- TapCardVlidatorKit-iOS (1.0.20)
- TapEditableViewV2 (1.0.1):
- TapAdditionsKitV2
- TapFontsKitV2 (0.0.4):
Expand Down Expand Up @@ -97,12 +97,12 @@ SPEC CHECKSUMS:
Crashlytics: 9220f5bc89e7a618df411b4f639389dbfb0e03d2
EditableTextInsetsTextFieldV2: 09a945c086dbcef688fe4fbb8302b408c146c391
Fabric: ea977e3cd9c20425516d3dafd3bf8c941c51223f
goSellSDK: 2f66de3f53898a31761b6e6cb7684ae5447f7e8e
goSellSDK: b56e1b6348df87b447045e44db95ccd6a1ab1231
SwiftyRSA: 8c6dd1ea7db1b8dc4fb517a202f88bb1354bc2c6
TapAdditionsKitV2: 9846381c32b150303cbeff355550d3500a98f77d
TapApplicationV2: aee3d046c4272778431e1535de6cab34e1269f8c
TapBundleLocalization: c7d7c14850223b0ef447aca1269d7308f78d54f9
TapCardVlidatorKit-iOS: d0157551ee8ef3827e86a7f7180129a6fcd9521e
TapCardVlidatorKit-iOS: 00ac65c44019f955234640e5d4ca583f639edca2
TapEditableViewV2: 00370b2b6c967c382fa944be8c04156d584d630b
TapFontsKitV2: b05e5ed03fc182c227f0660a0b318f44934d353c
TapGLKitV2: d3ef8bc5d1655a1d46e1696cfdcf19ae6e6d4d35
Expand Down
12 changes: 6 additions & 6 deletions Example/goSellSDKExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 51;
objectVersion = 55;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -374,7 +374,7 @@
};
};
buildConfigurationList = A4D5FE4A2083235E007D52F5 /* Build configuration list for PBXProject "goSellSDKExample" */;
compatibilityVersion = "Xcode 10.0";
compatibilityVersion = "Xcode 13.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
Expand Down Expand Up @@ -749,7 +749,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = goSellSDKExample/goSellSDKExample.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 6;
DEVELOPMENT_TEAM = G46S76PUH4;
GCC_WARN_UNUSED_LABEL = YES;
GCC_WARN_UNUSED_PARAMETER = YES;
Expand All @@ -759,7 +759,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.3.2;
MARKETING_VERSION = 2.3.3;
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" -Xfrontend -debug-time-function-bodies";
PRODUCT_BUNDLE_IDENTIFIER = company.tap.goSellSDKExamplee;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -776,7 +776,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = goSellSDKExample/goSellSDKExample.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 6;
DEVELOPMENT_TEAM = G46S76PUH4;
GCC_WARN_UNUSED_LABEL = YES;
GCC_WARN_UNUSED_PARAMETER = YES;
Expand All @@ -786,7 +786,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.3.2;
MARKETING_VERSION = 2.3.3;
PRODUCT_BUNDLE_IDENTIFIER = company.tap.goSellSDKExamplee;
PRODUCT_NAME = "$(TARGET_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ internal class ExampleViewController: BaseViewController {
// MARK: Methods

@IBAction private func addButtonTouchUpInside(_ sender: Any) {
session.start()
//self.showPaymentItemViewController()
//session.start()
self.showPaymentItemViewController()
}

@IBAction func applePayUIClicked(_ sender: Any) {
Expand Down
4 changes: 2 additions & 2 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PODS:
- TapApplicationV2 (0.0.2):
- TapAdditionsKitV2
- TapBundleLocalization (1.0.3)
- TapCardVlidatorKit-iOS (1.0.18)
- TapCardVlidatorKit-iOS (1.0.20)
- TapEditableViewV2 (1.0.1):
- TapAdditionsKitV2
- TapErrorReportingV2 (0.0.3):
Expand Down Expand Up @@ -98,7 +98,7 @@ SPEC CHECKSUMS:
TapAlertViewControllerV2: c5d0d90d6c9531c567612e7a9663d9e0fa418b81
TapApplicationV2: aee3d046c4272778431e1535de6cab34e1269f8c
TapBundleLocalization: c7d7c14850223b0ef447aca1269d7308f78d54f9
TapCardVlidatorKit-iOS: d0157551ee8ef3827e86a7f7180129a6fcd9521e
TapCardVlidatorKit-iOS: 00ac65c44019f955234640e5d4ca583f639edca2
TapEditableViewV2: 00370b2b6c967c382fa944be8c04156d584d630b
TapErrorReportingV2: b73217b68150071f72e6a1b1bef20c5157d49c5c
TapFontsKitV2: b05e5ed03fc182c227f0660a0b318f44934d353c
Expand Down
2 changes: 1 addition & 1 deletion goSellSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Pod::Spec.new do |goSellSDK|
goSellSDK.name = 'goSellSDK'
goSellSDK.summary = 'goSell SDK for iOS'
goSellSDK.requires_arc = true
goSellSDK.version = '2.3.20'
goSellSDK.version = '2.3.21'
goSellSDK.license = { :type => 'MIT', :file => 'LICENSE' }
goSellSDK.author = { 'Tap Payments' => '[email protected]' }
goSellSDK.homepage = 'https://github.com/Tap-Payments/goSellSDK-iOS'
Expand Down
10 changes: 5 additions & 5 deletions goSellSDK/Core/UI/Internal/Process/Process.DataManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -820,11 +820,11 @@ internal extension Process {
post = TrackingURL(url: nonnullPostURL)
}
// the Amounted Currency assigned by the merchant
var totalAmount:Decimal = dataSource.amount ?? 0
if totalAmount == 0
{
totalAmount = transactionCurrency.amount
}
// var totalAmount:Decimal = dataSource.amount ?? 0
// if totalAmount == 0
// {
var totalAmount:Decimal = transactionCurrency.amount
// }
let amountedCurrency = AmountedCurrency(dataSource.currency!!, totalAmount)
// the Amounted Currency selected by the user
let amountedSelectedCurrency = self.selectedCurrency
Expand Down

0 comments on commit d395bb3

Please sign in to comment.