Added default value for postal_code
This commit is contained in:
@@ -61,7 +61,15 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
paypal: {
|
||||
email_address: req.session.user.email || "",
|
||||
address: {
|
||||
postal_code: "1234",
|
||||
address_line_1: "",
|
||||
address_line_2: "",
|
||||
admin_area_1: "",
|
||||
admin_area_2: "",
|
||||
// added default values as requsted by the client, using the default values recommended
|
||||
// the paypal engineer, otherwise we would have to create something that would detect the location
|
||||
// of the user and generate a valid postal code for that location...
|
||||
country_code: "US",
|
||||
postal_code: "94107",
|
||||
},
|
||||
experience_context: {
|
||||
payment_method_preference: "IMMEDIATE_PAYMENT_REQUIRED",
|
||||
|
||||
Reference in New Issue
Block a user