Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
tien.vu committed Jun 30, 2017
1 parent af90b5c commit 7d50495
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ func paymentResponse(_ response: PWCoreSDKResponse?) {
guard let response = response else { return }
switch response.responseCode {
case .SUCCESSFUL:
//Example when you use Brick and `useNativeFinishDialog == true` can be found below
case .FAILED:
case .CANCEL:
case .MERCHANT_PROCESSING:
//Example when you use Brick and `useNativeFinishDialog == true` can be found below
}

switch response.paymentType {
Expand Down Expand Up @@ -159,7 +160,11 @@ if response.paymentType == .BRICK {
}
}
```
> Note: Pass the error as Dictionary with key = "error" and value is the error message via `userInfo`, the SDK will automatically show failed dialog instead of successful dialog
- Pass the error in Dictionary as `["error": errorMessage]` via `userInfo`, the SDK will automatically show failed dialog instead of successful dialog

- If 3D secure happen, we also support 3D secure, pass the URL in Dictionary as `["secure": urlString]` via `userInfo`, the SDK will handle showing the 3D secure and pass `SUCCESS/FAILED` back to app after user finish enter secure info

- If you want to enable store card feature for user, pass the Charge object to our SDK via `userInfo`, Charge object format can be found in our [Brick docs](https://www.paymentwall.com/en/documentation/Brick/2968)

Custom PWLocal signature
------------------------
Expand Down

0 comments on commit 7d50495

Please sign in to comment.