Skip to content

Commit

Permalink
add optional merchantAccountID to PayPalVaultEditRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
KunJeongPark committed Aug 5, 2024
1 parent 41088d9 commit b58528f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/BraintreePayPal/BTPayPalVaultEditRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ import Foundation
public class BTPayPalVaultEditRequest {

private let editPayPalVaultID: String
public var merchantAccountID: String?

// TODO: specify endpoint for merchant to retrieve the token
/// Initializes a PayPal Edit Request for the edit funding instrument flow
/// - Parameters:
/// - editPayPalVaultID: Required: The `edit_paypal_vault_id` returned from the server side request
/// merchantAccountIdD: optional ID of the merchant account; if one is not provided the default will be used
/// - Warning: This feature is currently in beta and may change or be removed in future releases.
public init(editPayPalVaultID: String) {
public init(editPayPalVaultID: String, merchantAccountID: String? = nil) {
self.editPayPalVaultID = editPayPalVaultID
self.merchantAccountID = merchantAccountID
}
}

0 comments on commit b58528f

Please sign in to comment.