Skip to content

Commit

Permalink
Merge pull request #1 from tranzzo/feature/new_version
Browse files Browse the repository at this point in the history
New version 1.0.4
  • Loading branch information
marazmone authored Sep 13, 2023
2 parents fa5b1f9 + 40dd60e commit 307a8f9
Show file tree
Hide file tree
Showing 21 changed files with 45 additions and 17 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ All notable changes to this project will be documented in this file.
### Fixed

- Fixed Swift version

## [1.0.4] - 12.09.2023

### Added

- Added new screen for choose tokenized cards
- Added TokenCardModel object to init method AnyAmountPaymentType
- Added TokenCardModel object to init method FixedAmountPaymentType

2 changes: 1 addition & 1 deletion Example/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ target 'TranzzoPaymentSDK-Example' do
use_frameworks!

# Pods for TranzzoPaymentSDK-Example
pod 'TranzzoPaymentSDK', :git => 'https://github.com/tranzzo/mobile-sdk-example-ios.git'
pod 'TranzzoPaymentSDK', :git => 'https://github.com/tranzzo/mobile-sdk-ios.git'
pod 'SwiftJWT'

end
Expand Down
49 changes: 34 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ TranzzoPaymentSDK is written in Swift 5+. iOS 11.0+ Required
With Cocoapods

```ruby
pod 'TranzzoPaymentSDK', :git => 'https://github.com/tranzzo/mobile-sdk-ios.git', :tag => '1.0.2'
pod 'TranzzoPaymentSDK', :git => 'https://github.com/tranzzo/mobile-sdk-ios.git', :tag => '1.0.4'
```

While using TranzzoPaymentSDK, don’t forget:
Expand Down Expand Up @@ -103,38 +103,57 @@ a) Create `PaymentType` object that contains all necessary information about pay
- In case user should have the fixed amount for payment you need to create the next object:
```swift
let paymentType = FixedAmountPaymentType(orderId: "your_order_id",
amount: 0.15, // Decimal
description: "your_order_description")
amount: 0.15,
description: "your_order_description",
tokenCards: [
TokenCardModel(mask: "card_mask",
token: "card_token",
isDefault: true)
])
```
>`description` is the text will be displayed to user on the payment screen. Please, provide a readable
product description.
>`description` is the text will be displayed to user on the payment screen. Please, provide a readable product description.
`tokenCards` - array of already tokenized cards (TokenCardModel), `nil` by default

The UI example with fixed amount and product description:
The UI example with fixed amount, product description and empty `tokenCards`:

<img src="images/fixedAmount.png" width="300"/>
<br>

The UI example with fixed amount, product description and `tokenCards`:

<img src="images/fixedAmount_tokenized_cards.png" width="300"/>
<br>

- In case user can change the amount of payment by themself you need to create the next object:
```swift
let paymentType = AnyAmountPaymentType(orderId: UUID().uuidString,
description: "Test product",
proposedAmounts: [9.99, 14.99, 29.99] // Decimal array
```
>`proposedAmounts` - array of already predefined amount values, `nil` by default \
`description` - text will be displayed to user on the payment screen. Please, provide a readable
product description.
proposedAmounts: [9.99, 14.99, 29.99], // Decimal array
tokenCards: [
TokenCardModel(mask: "card_mask",
token: "card_token",
isDefault: true)
])

The UI example with free to change amount, `proposedAmounts` and product description:n:

<img src="images/anyAmount_prefiled.png" width="300"/>
```
>`proposedAmounts` - array of already predefined amount values, `nil` by default
`description` - text will be displayed to user on the payment screen. Please, provide a readable product description.
`tokenCards` - array of already tokenized cards (TokenCardModel), `nil` by default

The UI example with free to change amount, description and empty `proposedAmounts`.
The UI example with free to change amount, description, empty `proposedAmounts`, empty `tokenCards`.

<img src="images/anyAmount.png" width="300"/>
<br>

The UI example with free to change amount, `proposedAmounts`,product description and empty `tokenCards`:

<img src="images/anyAmount_prefiled.png" width="300"/>
<br>

The UI example with free to change amount, `proposedAmounts`,product description and `tokenCards`:

<img src="images/anyAmount_prefiled_tokenized_card.png" width="300"/>

b) Create `KeyConfig` object:
```swift
let keyConfig = KeyConfig(sessionToken: "your_session_token",
Expand Down
Binary file modified Sources/TranzzoPaymentSDK.framework/Assets.car
Binary file not shown.
Binary file modified Sources/TranzzoPaymentSDK.framework/Info.plist
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Sources/TranzzoPaymentSDK.framework/TranzzoPaymentSDK
Binary file not shown.
2 changes: 1 addition & 1 deletion TranzzoPaymentSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = 'TranzzoPaymentSDK'
spec.version = '1.0.3'
spec.version = '1.0.4'
spec.summary = 'TranzzoPaymentSDK'
spec.description = 'Framework for Payments'
spec.homepage = 'https://tranzzo.ua'
Expand Down
Binary file modified images/anyAmount.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/anyAmount_prefiled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/anyAmount_prefiled_tokenized_card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/fixedAmount.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/fixedAmount_tokenized_cards.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 307a8f9

Please sign in to comment.