Skip to content

Commit

Permalink
Merge pull request #3 from tranzzo/feature/new_version
Browse files Browse the repository at this point in the history
added new framework version
  • Loading branch information
marazmone authored Nov 9, 2023
2 parents e4e8eb1 + 3b0923a commit 8fcd1ef
Show file tree
Hide file tree
Showing 12 changed files with 71 additions and 55 deletions.
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,46 @@ All notable changes to this project will be documented in this file.
### Fixed
- Fixed access level for PaymentInfoResponse
- Fixed access level for TranzzoError

## [1.0.6] - 08.11.2023

### Added
Added addditional property to PaymentInfoResponse object:
customerUserAgent: String?
customerCity: String?
rrn: String?
authCode: String?
dcc: String?
otpURL: String?
makePaymentDescription: String?
customerBirthday: String?
payway: String?
customerPatronym: String?
terminalName: String?
recipientCcToken: String?
recipientCcMask: String?
dccRates: String?
fee: String?
trafficSource: String?
gateway: String?
paymentSystem: String?
entityId: String?
externalTerminalName: String?
recipientEmail: String?
recipientPhone: String?
recipientFname: String?
recipientLname: String?
recipientPatronym: String?
merchantOrderId: String?
receiptUrl: String?
processedAmount: Double?
processedCurrency: String?
fixedFee: String?
percentFee: String?
comment: String?
terminalFee: String?
sendTerminalFee: String?
splitFee: String?
registryRefNo: String?
processedAt: String?

72 changes: 27 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,57 +235,39 @@ func paymentSuccess(_ results: PaymentInfoResponse)
```
>Method fire when Payment was successfully. Return `PaymentInfoResponse` object that contains all information about payment
`PaymentInfoResponse` :
|Parameter | Description |
| ----------- | ----------- |
|payment_id| Unique Tranzzo payment identifier|
|order_id| Unique identifier of order|
|gateway_order_id| Unique order identifier in bank acquirer system.|
|billing_order_id| Unique Tranzzo billing identifier|
|transaction_id| Tranzzo transaction identifier|
|pos_id |Merchant's identifier (POS_ID)|
|mode| direct|
|method | Payment method (auth or purchase)|
|amount |Transaction amount|
|currency| Transaction currency (ISO_4217)|
|description |Payment description|
|status | Transaction status|
|status_code | Tranzzo payment status code|
|status_description | Tranzzo payment status code description|
|user_action_required | Either customer action is required to proceed with payment|
|user_action_url | If user_action_required is true then user should be redirected to this URL|
|eci | Electronic Commerce Indicator - authentication result of credit card payment on 3D Secure|
|mcc | MCC for this transaction|
|options_3ds | 3-D Secure flow option|
|cc_mask | Card number mask|
|cc_token | Tranzzo card token generated for this card|
|cc_token_expiration | Token expiration timestamp|
|customer_id | Customer identifier in merchant's system|
|customer_ip | Customer IP address|
|customer_fname | Customer first name|
|customer_lname | Customer last name|
|customer_email | Customer email|
|customer_phone | Customer phone|
|customer_country | Customer country|
|result_url | Customer will be redirected to this URL after payment.|
|created_at | Timestamp when transaction was created|
|processing_time | Timestamp when transaction was updated last time|
|payload | Field for custom data|
|bank_short_name | Bank short name.|
|||
### PaymentStatus
```swift
public enum PaymentStatus: String, Codable {
case pending
case failure
case success
}
```

#### SUCCESS

This status indicates that the transaction has been processed successfully.

#### FAILURE

This status indicates that the transaction has been rejected. The reasons for this may include
specific errors at any stage of the payment process, such as incorrect payment data, activation
of limits and checks, insufficient funds, and so on.

#### PENDING

This status is applicable to all types of transactions and indicates that the transaction is being
processed by the bank or payment system. The SDK checks this status on its own and re-requests the
status until it receives SUCCESS or FAILURE. But if the status does not change within 60 seconds,
the client receives the PENDING status.


<br>

```swift
func paymentFailed(_ error: TranzzoError)
```
>Method fire when Payment was failed. Return `TranzzoError` object that contains short info about
|Parameter | Description |
| ----------- | ----------- |
|httpCode| Response HTTP status code|
|message| Readeble message about error|
|type| Error type (server/client/framework)|
>Method fire when Payment was failed. Return `TranzzoError` object that contains short info about error
<br>
```swift
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

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.5'
spec.version = '1.0.6'
spec.summary = 'TranzzoPaymentSDK'
spec.description = 'Framework for Payments'
spec.homepage = 'https://tranzzo.ua'
Expand Down

0 comments on commit 8fcd1ef

Please sign in to comment.