-
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
Pritish Budhiraja
committed
Apr 19, 2024
1 parent
63a54aa
commit 1b748a8
Showing
6 changed files
with
65 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
STATIC_DIR=./dist | ||
HYPERSWITCH_PUBLISHABLE_KEY= | ||
HYPERSWITCH_SECRET_KEY= | ||
HYPERSWITCH_SERVER_URL= | ||
HYPERSWITCH_CLIENT_URL= | ||
HYPERSWITCH_PUBLISHABLE_KEY="pk_snd_3b33cd9404234113804aa1accaabe22f" | ||
HYPERSWITCH_SECRET_KEY="snd_c691ade6995743bd88c166ba509ff5da" | ||
HYPERSWITCH_SERVER_URL="https://sandbox.hyperswitch.io" | ||
HYPERSWITCH_CLIENT_URL="http://localhost:9050" | ||
|
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 |
---|---|---|
|
@@ -45,8 +45,8 @@ app.get("/create-payment-intent", async (req, res) => { | |
try { | ||
var paymentIntent; | ||
const request = { | ||
currency: "USD", | ||
amount: 2999, | ||
currency: "EUR", | ||
amount: 0, | ||
order_details: [ | ||
{ | ||
product_name: "Apple iphone 15", | ||
|
@@ -60,7 +60,16 @@ app.get("/create-payment-intent", async (req, res) => { | |
customer_id: "hyperswitch_sdk_demo_id", | ||
email: "[email protected]", | ||
description: "Hello this is description", | ||
// allowed_payment_method_types:["sofort"], | ||
profile_id: "pro_E6k4XxWE3fVzTIYDMzJa", | ||
setup_future_usage: "off_session", | ||
// mandate_data: { | ||
// mandate_type: { | ||
// single_use: { | ||
// amount: 4000, | ||
// currency: "USD", | ||
// }, | ||
// }, | ||
// }, | ||
shipping: { | ||
address: { | ||
state: "zsaasdas", | ||
|
@@ -96,7 +105,7 @@ app.get("/create-payment-intent", async (req, res) => { | |
city: "San Fransico", | ||
state: "California", | ||
zip: "94122", | ||
country: "US", | ||
country: "PT", | ||
first_name: "joseph", | ||
last_name: "Doe", | ||
}, | ||
|
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 |
---|---|---|
|
@@ -58,6 +58,7 @@ function Payment() { | |
clientSecret, | ||
appearance: { | ||
labels: "floating", | ||
theme: "brutal", | ||
}, | ||
}} | ||
> | ||
|
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