this repo has no description

:sparkles: adding return to not send to a closed channel

Changed files
+16
internal
providers
+1
internal/providers/provider.go
··· 52 52 response, err := provider.Charge(charge) 53 53 if err != nil { 54 54 close(ch) 55 + return 55 56 } 56 57 ch <- response 57 58 }()
+15
request.hurl
··· 1 + POST http://localhost:8000/payments 2 + Content-Type: application/json 3 + { 4 + "amount": 10000, 5 + "currency": "BRL", 6 + "description": "Pagamento do Pix", 7 + "paymentType": "card", 8 + "card": { 9 + "number": "0000 0000 0000 0000", 10 + "holderName": "Teste Teste", 11 + "cvv": "123", 12 + "expirationDate": "12/2345", 13 + "installments": 1 14 + } 15 + }