-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9f773b
commit 09352da
Showing
2 changed files
with
47 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,52 +80,14 @@ export const createPaymentBody = { | |
|
||
} | ||
|
||
export const createPaymentBodyWithoutBillingAddress = { | ||
currency: "USD", | ||
amount: 2999, | ||
order_details: [ | ||
{ | ||
product_name: "Apple iPhone 15", | ||
quantity: 1, | ||
amount: 2999, | ||
}, | ||
], | ||
confirm: false, | ||
capture_method: "automatic", | ||
authentication_type: "no_three_ds", | ||
customer_id: "hyperswitch_sdk_demo_id", | ||
email: "[email protected]", | ||
request_external_three_ds_authentication: false, | ||
description: "Hello this is description", | ||
shipping: { | ||
address: { | ||
line1: "1467", | ||
line2: "Harrison Street", | ||
line3: "Harrison Street", | ||
city: "San Fransico", | ||
state: "California", | ||
zip: "94122", | ||
country: "US", | ||
first_name: "joseph", | ||
last_name: "Doe", | ||
}, | ||
phone: { | ||
number: "8056594427", | ||
country_code: "+91", | ||
}, | ||
}, | ||
metadata: { | ||
udf1: "value1", | ||
new_customer: "true", | ||
login_date: "2019-09-10T10:11:12Z", | ||
}, | ||
profile_id: "pro_5fVcCxU8MFTYozgtf0P8", | ||
} | ||
|
||
export const changeObjectKeyValue = (object: Record<string, any>, key: string, value: boolean | string) => { | ||
object[key] = value | ||
} | ||
|
||
export const deleteObjectKey = (object: Record<string, any>, key: string) => { | ||
delete object[key] | ||
} | ||
|
||
export const confirmBody = { | ||
client_secret: "", | ||
return_url: "http://localhost:9060/completion", | ||
|