Replies: 1 comment
-
Hey @rosemaryjogn 👋, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
input -
import requests
url = "https://sandbox.hyperswitch.io/payments"
payload = {
"amount": 6540,
"currency": "USD",
"confirm": True,
"capture_method": "automatic",
"capture_on": "2022-09-10T10:11:12Z",
"amount_to_capture": 6540,
"customer_id": "cus_KkCoKDaIg1inPqpHzZ5R",
"name": "org2",
"phone": "999999999",
"phone_country_code": "+1",
"description": "Its my first payment request",
"authentication_type": "no_three_ds",
"payment_method": "card",
"payment_method_type": "credit",
"payment_method_data": {
"card": {
"card_number": "4242424242424242",
"card_exp_month": "10",
"card_exp_year": "25",
"card_holder_name": "Doe",
"card_cvc": "123"
}
}
}
headers = {
"api-key": "",
"Content-Type": "application/json"
}
response = requests.request("POST", url, json=payload, headers=headers)
output -
Sending credit card numbers directly to the Stripe API is generally unsafe. We suggest you use test tokens that map to the test card you are using, see https://stripe.com/docs/testing. To enable raw card data APIs in test mode, see https://support.stripe.com/questions/enabling-access-to-raw-card-data-apis.
payment transaction failed by showing the above message. how can i fix it?
Beta Was this translation helpful? Give feedback.
All reactions