• Resolved albyse

    (@albyse)


    Hi we are using your plugin, thanks a lot for the plugin. We have a requirement. We are going to call braintree settings public key,murchent id etc in another plugin. So can you please help on how to call the braintree payment gateway and its values. Does WC_Braintree() class instantiation needed for it? Also can you please provide the api key of braintree for doing payment which contains payment id.

    Expecting your support. Thankyou

    • This topic was modified 1 year, 6 months ago by albyse.
    • This topic was modified 1 year, 6 months ago by albyse.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,

    That sounds like you would like to perform an API call to Braintree for WooCommerce Payment Gateway, is this correct?

    You can get more information here:

    https://developer.paypal.com/braintree/docs/guides/payment-request/overview

    Hope this helps.

    Thread Starter albyse

    (@albyse)

    Ok, thanks a lot. Now I’m working with APIs. Now I want to ask you a doubt. What is the use of ‘submitForSettlement’ in following code. Or what is mean by submitting a transaction for settlement in braintree?

    $result = $gateway->transaction()->submitForSettlement(‘the_transaction_id’);

    Expecting your quick reply. Thank you

    Hi @albyse

    In the context of the Braintree API, submitting a transaction for settlement means that you are requesting the funds to be transferred from the customer’s payment method (e.g., credit card, PayPal account) to your merchant account. This process is essential for actually receiving the funds from a sale or any other type of transaction.

    The submitForSettlement function in the code you provided is used to initiate this process. This line of code is calling the submitForSettlement function on a specific transaction by passing in the transaction ID the_transaction_id. The function then sends a request to the Braintree API to initiate the settlement process for that transaction.

    You can learn more about that on these documentations:

    Hope this helps!

    Thread Starter albyse

    (@albyse)

    Ok. One more doubt is there. I have integrated Braintree using api. But in frontend, when we tries to pay using paypal, it doesn’t show the amount to pay. But the amount is correctly paying to admin’s paypal account. But normally, the paypal will show the price in paypal gateway while doing the payment. Is there any way to show the price in paypal gateway while paying?

    Thank you.

    Hi @albyse

    To better picture what you are referring to here, can you please share with us a clear screenshot of what you see on your end so that we could address you more effectively?

    If you don’t already have a screenshot service installed, you can try https://snipboard.io. You can share the direct link to the image as a response to this topic.

    Thread Starter albyse

    (@albyse)

    Hi, the image is https://snipboard.io/oDesKS.jpghttps://snipboard.io/oDesKS.jpg

    Issue: The amount to pay is not showing in paypal account

    • This reply was modified 1 year, 6 months ago by albyse.

    Hi @albyse

    Thanks for sharing the requested information above.

    For us to investigate your issue further, I’d like to understand your site properly. Please share your System Status Report that you can find via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, you can paste it into your reply here.

    If you could also provide the fatal error logs (if any) under WooCommerce > Status > Logs.

    You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.

    Thanks!

    Thread Starter albyse

    (@albyse)

    Hi the problem is solved, the issue was from our side. One more question I want to ask is: How to print payment method after doing a transaction using braintree using the code $result = $gateway->transaction()->submitForSettlement(‘the_transaction_id’);

    Plugin Support Summer M.a11n

    (@shrutiwpcom)

    Hi @albyse!

    You might be able to modify/edit the following and use that for your purpose:

    $result = $gateway->transaction()->submitForSettlement('the_transaction_id');
    $payment_method = $result->transaction->paymentInstrumentType;
    echo $payment_method;


    Note that we do not provide support with plugin customizations: https://woocommerce.com/support-policy/

    If you need help with custom code, you can reach out to someone from Codeable:?https://codeable.io

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to get values like merchant id, public key, etc’ is closed to new replies.