Skip to content

Commit 0eb1d72

Browse files
fix(pwbtverify): include transaction id payload
1 parent 0bca27b commit 0eb1d72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

FlutterwaveSDK/Classes/Model/PwbtVerify.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ struct PwbtVerifyResponse: Codable {
2424

2525
// MARK: - PwbtVerifyData
2626
struct PwbtVerifyData: Codable {
27+
let id: Int?
2728
let txRef, flwRef: String?
2829
let amount: Double?
2930
let chargedAmount, appFee: Double?
@@ -35,6 +36,7 @@ struct PwbtVerifyData: Codable {
3536
let customer: Customer?
3637

3738
enum CodingKeys: String, CodingKey {
39+
case id
3840
case txRef = "tx_ref"
3941
case flwRef = "flw_ref"
4042
case amount
@@ -52,7 +54,7 @@ struct PwbtVerifyData: Codable {
5254

5355
extension PwbtVerifyData {
5456
func toFlutterResponse() -> FlutterwaveDataResponse{
55-
return FlutterwaveDataResponse(txRef: txRef, flwRef: flwRef, deviceFingerprint: nil, amount: amount, chargedAmount: chargedAmount, appFee: appFee, merchantFee: merchantFee, processorResponse: processorResponse, authModel: authModel, currency: currency, ip: ip, narration: narration, status: status, authURL: nil, paymentType: paymentType, fraudStatus: nil, chargeType: nil, createdAt: nil, plan: nil, id: nil, accountID: nil, customer: customer, card: nil)
57+
return FlutterwaveDataResponse(txRef: txRef, flwRef: flwRef, deviceFingerprint: nil, amount: amount, chargedAmount: chargedAmount, appFee: appFee, merchantFee: merchantFee, processorResponse: processorResponse, authModel: authModel, currency: currency, ip: ip, narration: narration, status: status, authURL: nil, paymentType: paymentType, fraudStatus: nil, chargeType: nil, createdAt: nil, plan: nil, id: id, accountID: nil, customer: customer, card: nil)
5658
}
5759
}
5860

0 commit comments

Comments
 (0)