skip to Main Content

PayPal API specifying currency SGD

I'm developing a payment system with PayPal API. Everything works except that the transaction is in USD and not SGD (like how I want it to be). PayPal Button from react-paypal-button-v2 <PayPalButton currency='SGD' amount={parcel.basePrice} onSuccess={successPaymentHandler} /> Script to add PayPal…

VIEW QUESTION

Xcode – Why response is always {"detail":"Unsupported media type "text/plain" in request."} in swift?

I have created a sample app in Django which deletes a question from App. And provides a correct output when consumed using POSTMAN. class Questions(APIView): def delete(self,request): received_id = request.POST["id"] print(received_id) place = Question.objects.get(pk=received_id) place.delete() questions = Question.objects.all() seriliazer =…

VIEW QUESTION
Back To Top
Search