DJANGO-PAYPALRESTSDK : sslv3 alert handshake failure (_ssl.c:590)?

خرید بک لینک

This is my code django :

def view_that_asks_for_money(request):
        paypalrestsdk.configure({
          "mode": "sandbox", # sandbox or live
          "client_id": "AWTypntyh1zsmZ8jX-HoueXL_ZSshWYZSpKJyjj-oCRZ6GOzbW5wugqM2ocv73oohpK4YMVLw8wI7yE7",
          "client_secret": "EAtLpW56ge46h9Tohv1F2V8lq2NzOY5-fGjYeLvOLm4u74cex-EC0UaWUqZUR741ejWKcz7hAcV7eOEp" })

        payment = paypalrestsdk.Payment({
          "intent": "sale",
          "payer": {
            "payment_method": "credit_card",
            "funding_instruments": [{
              "credit_card": {
                "type": "visa",
                "number": "4417119669820331",
                "expire_month": "11",
                "expire_year": "2018",
                "cvv2": "874",
                "first_name": "Joe",
                "last_name": "Shopper" }}]},
          "transactions": [{
            "item_list": {
              "items": [{
                "name": "item",
                "sku": "item",
                "price": "1.00",
                "currency": "USD",
                "quantity": 1 }]},
            "amount": {
              "total": "1.00",
              "currency": "USD" },
            "description": "This is the payment transaction description." }]})

        if payment.create():
          print("Payment created successfully")
        else:
          print(payment.error)
        retu render(request, "test.html")

When performing the command payment.create() the error is: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:590) I'm using Mac.

This is error: enter image description here

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 314 تاريخ: جمعه 4 تير 1395 ساعت: 9:39

صفحه بندی