Payment with REST API

I’m using Braintree payment gateway and having issues when tying to make a payment through REST API. I am calling carts/mine/payment-information endpoint with following values.


Authorization: Bearer customer-token Content-type: application/json 


{   "paymentMethod": {     "po_number": "",     "method": "braintree",     "additional_data":{          "cc_last4":"1111",          "store_in_vault":true,          "payment_method_nonce":"nonce-goes-here",          "cc_token":"",          "device_data":"",          "cc_type":"Visa",          "cc_exp_year":"2055",          "cc_exp_month":"01"      },     "extension_attributes": {       "agreement_ids": [         "string"       ]     }   },   "billingAddress": {     "id": 0,     "region": "Victoria",     "region_id": 546,     "region_code": "VIC",     "country_id": "AU",     "street": [       "Main St"     ],     "company": "Company Name",     "telephone": "987654321",     "fax": "",     "postcode": "3000",     "city": "Melbourne",     "firstname": "Firstname",     "lastname": "Lastname",     "middlename": "Middlename",     "prefix": "Mr",     "suffix": "",     "vat_id": "",     "customer_id": 0,     "email": "",     "same_as_billing": 0,     "customer_address_id": 0,     "save_in_address_book": 0,     "extension_attributes": {},     "custom_attributes": {}   } }  

I have generated a braintree token and used that token to generate the nonce. With the use of nonce, I was able to create a Braintree transaction as below.

   $  result = Braintree_Transaction::sale([         'amount' => $  transactionAmount,         'paymentMethodNonce' => $  nonceFromTheClient,         'options' => [             'submitForSettlement' => True         ]     ]); 

The transaction gets successful but when I try to place an order on Magento using my transaction details, I keep getting the following error.

Transaction has been declined. Please try again later

Can anyone advise me what’s wrong with my process/ request please?


Seeking an International Payment Processor / $25,000 monthly

Hi, so i have a unique service that processes about $ 25,000 in payments a month. US payment processors don't seem interested and we're trying to find something better than our current processor in Ghana. Yes Africa Ghana where half our payments fail probably because US banks see Africa as a red flag.

It's not illegal in any way, we have very low charge backs (less than 1%), and surprisingly PayPal works/accepts our platform. If anyone here thinks they have something that will accept an…

Seeking an International Payment Processor / $ 25,000 monthly

Magento : REST API integration with paypal payment method

We are using REST API for mobile app from magento 2. We are try to place order using paypal express checkout method. But we get error. Check detail bellow.

API call.

Call Type : PUT


Request Body

{     "paymentMethod": {           "method": "paypal_express",           "additional_data": {                  "paypal_express_payment_payload": {                        "create_time":"2019-04-15T23:13:52Z",                        "id":"PAY-6RV70583SB702805EKEYSZ6Y",                        "intent":"sale",                        "state":"approved"                  }           }     } } 

Response of API call :

{ “message”: “Internal Error. Details are available in Magento log file. Report ID: webapi-5cb8df18c6197” }

Magento Error log

    [2019-04-18 20:33:28] main.CRITICAL: Report ID: webapi-5cb8df18c6197; Message: Notice: Array to string conversion in /vendor/magento/framework/Reflection/TypeProcessor.php on line 473  {"exception":"[object] (Exception(code: 0): Report ID: webapi-5cb8df18c6197; Message: Notice: Array to string conversion in /vendor/magento/framework/Reflection/TypeProcessor.php on line 473  at /vendor/magento/framework/Webapi/ErrorProcessor.php:206, Exception(code: 0): Notice: Array to string conversion in /vendor/magento/framework/Reflection/TypeProcessor.php on line 473 at /vendor/magento/framework/App/ErrorHandler.php:61)"} [] 

Why did the Payment section stopped working after switching primary domain? And – does Form Key Validation On Checkout need to be enabled?

Porto theme 

I switched the primary domain in our Magento 1.9.4 store and then the Payment section of the checkout stopped working altogether – you could select a Payment method by placing a tick in the radio button but it would NOT proceed to the next step.

I found other posts dealing with problems regarding the payment section and they suggested to Disable the Form Key Validation. I did that and it made the Payment section work.

Why is this and do we need to have it enabled or are we going to get by with it disabled?

magento 2 : Place order using REST API and stripe payment method

We are working on mobile which use magento 2 REST API. In which we are facing issue while try to place order using Stripe payment method. For stripe we are using magenest stripe extension.

REST API call for guest user is :

Parameter is :

{   "paymentMethod": {        "additional_data":{            "number": "4111111111111111",            "exp_month": "10",            "exp_year": "30",            "cvv": "123",          }     "method": "magenest_stripe"   } } 


{     "massage" : "No such token: false" } 

So please help us to fix this issue.

Payment Processing for dating site

Hi friends, I live in Turkey. I have personal company in Turkey. I have previously worked with affiliate advertising model for another dating site. My clients are generally UK and America. There are virtual POS payment solution in Turkey, but for prohibition dating site. (I have a chance to get it from the bank, but the procedures are long and hard.)

What I want to ask Can I get a virtual POS payment from a foreign system?

PayPal All-In-One Payment Solution – Split to multiple options in checkout processes

TLTR: Split “PayPal All-In-One Payment Solution” into 3 different payment options in the checkout process that all go to the same place.

Magento 2 comes with “PayPal All-In-One Payment Solution” that enables user to pay by PayPal but also by credit/debit card through the same payment method.

When this option is enabled, it shows only ONE payment option in the checkout process. This is understandable, however, I would like to offer more than one payment option in the checkout “Payment Method” section such as “Credit Card”, “Debit Card” and “PayPal” which all go to the same place.

To visualise my goal:

Current setup:

PayPal Payment ---- [PayPal Method] 

Desired result:

Credit Card --- Debit Card  ----- [PayPal Method] PayPal      ---  

I don’t even know where to start so any help or directions will be hihgly appropriated.

When trying to update existing free apps or install new ones, I get into a payment “Verification Required” loop

On my iPad (iOS 12.2), I’m trying to update my existing apps. The app store requests that I authenticate with my Apple ID password. It then brings me to my payment information screen, where it asks me to configure my payment method.

I select “None” on the payment method screen, since I’m only planning on updating apps and installing free ones on this iPad for now. After clicking “Done”, it pops up the Apple ID authentication box again, which brings me back to the payment method screen, and this loop continues forever. I can’t update my apps or install any new apps, even free ones.

In my App Store settings, I have disabled the “Require Password for Free Downloads” setting, but it doesn’t make a difference. I can’t install or update free apps.