8 votes

How do I programmatically update the order status?

You want to use the State Machine methods of the Commerce Order class. It would be something like this, but it will depend on what you called your order states. $order_state = $orderObj->...
user avatar
  • 2,552
5 votes

Is there a way to turn off the paypal checkout button in /cart view in drupal 7 commerce?

If found a simple way to disable the button through rules. Edit the configuration of the Paypal EC payment method and add a condition to the rule: Data Comparison / Commerce Order...state / Equal ...
user avatar
4 votes

Do not request a billing address during checkout

It is quite hard to do indeed. One way to do this is by setting a dummy billing address and hide the address form. You will need to do the following: In a custom module, add a CommerceCheckoutPane ...
user avatar
  • 760
3 votes

Paid Registration with Paypal

If this is an activity that you'll be repeating, like hosting events on a regular basis, I would step it up a notch and add CiviCRM to the Drupal installation. It will increase the complexity of your ...
user avatar
3 votes

Do not request a billing address during checkout

TL:DR; Go to admin/config/people/profiles/types/manage/customer/form-display and disable the form elements you want to hide (config applies to entire site) Explanation It should be fairly easy to do ...
user avatar
  • 35.1k
3 votes
Accepted

How to set up a recurring payment

It's entirely dependent on your business needs. The advantage of Commerce Recurring is that as part of the Drupal Commerce ecosystem, it gives you a complete toolset for building a subscription ...
user avatar
  • 6,654
2 votes

Can't locate where Commerce Authnet stores the API and Key

I'm assuming you're using the latest version of Commerce authnet. Drupal Commerce payment system (as well as discounts, taxes..) is based in rules, you can see here how the settings form are included:...
user avatar
  • 2,462
2 votes

Commerce Paypal Payment Standard Currency Conversion

I done this successfully, you have to follow these steps In Currency settings go to Currency conversion then select Synchronize rates on save. Then check the option "Synchronize all rates of this ...
user avatar
2 votes
Accepted

Commerce Paypal Payment Standard Currency Conversion

The PayPal Payments Standard module only supports the currencies PayPal specifically identifies in its API documentation as supported currencies. When it encounters an unsupported currency, it ...
user avatar
  • 6,654
2 votes
Accepted

Drupal 7 Organic Groups, Drupal Commerce and Paypal

Please check out Commerce Node Checkout Module It gives you a basic Pay to Pubish workflow, which is exactly what you are try achieve. As the project page says the module helps you Integrate with ...
user avatar
  • 6,493
2 votes
Accepted

Drupal Commerce PayPal Express Checkout review and confirm step is skipped

The only code that would trigger a skip of the order confirmation page is in the checkout router hook implementation commerce_paypal_ec_commerce_checkout_router(). If you take a look at that, you'll ...
user avatar
  • 6,654
2 votes

How to change Solution Name display on authorize.net under Transaction Source useing Drupal commerce

It's unfortunate that Authorize.Net identifies it as "Commerce Guys". It should be identifying the request as coming from "Drupal Commerce", which allows them to monitor adoption by users of the ...
user avatar
  • 6,654
2 votes
Accepted

Drupal Commerce Paypal WPS

PayPal WPS submodule of Commerce PayPal provides only one payment option, which redirects the user to PayPal for payment. Credit card icons are there to let users know that at PayPal's end they will ...
user avatar
  • 2,803
2 votes
Accepted

Moving PayPal Payment iFrame to Checkout page

This actually just isn't possible. The iframe depends on having a completed order object, which you can't possibly have (or know for certain) if it's on the same page as fields placed to collect user ...
user avatar
  • 6,654
2 votes

Can payment be done in pop-up rather than using redirect?

If your gateway tells you to redirect, you redirect. If you need a modal-based gateway, choose another gateway. Changing the flow recommended by your gateway puts you firmly in unsupported waters, ...
user avatar
2 votes
Accepted

How do I make a withdrawal?

I suppose this can be done, but it won't be easy. There will be quite some components and you will have to write some code. Disclaimer is that I have not tested anything of this code, but I hope this ...
user avatar
  • 8,179
2 votes
Accepted

Commerce 2 how to set to live paypal signature API Credentials

Ok I sussed this out quicker than I expected. So for anyone else having this issue do this.. Login to the merchant account NOT the developer account. Menu on Top right Click Profile > Profile and ...
user avatar
  • 519
2 votes

How do I programmatically update the order status?

I think you are looking to "place" the order. You need to subscribe to the Event handler for this event: commerce_order.order.paid and with this handler code: public function ...
user avatar
  • 907
2 votes
Accepted

How to update payment status inside an order?

Please change the code from \Drupal\commerce_order\Payment\Payment::loadByProperties(['order_id' => $order_id]); TO \Drupal::entityTypeManager() ->getStorage('...
user avatar
2 votes

How do I add extra cost with cash on delivery?

It's been a long time since this has been asked, but I'm adding my input here since I bumped into this while looking for the exact same thing for one of my projects. The way I found as the cleanest ...
user avatar
  • 39
2 votes
Accepted

What payment gateway should be used for invoice payment?

Yes - just create a new (custom, standard) payment method named Invoice, and user's then can select that. On the payment method edit form you can add more details, and even could limit the ...
user avatar
  • 5,594
1 vote
Accepted

Populating 2 variables with user-entered form data and sending them to PayPal

assuming you're using commerce_paypal WPS, you'll need to hook HOOK_commerce_paypal_wps_order_form_data_alter(&$data, $order){} in a custom module. there you can extend the $data array like $...
user avatar
  • 5,594
1 vote
Accepted

Dynamically add User into a role

While you could utilize hooks like hook_form_FORM_ID_alter setting custom #validate & #submit functions or hook_webform_submission_insert, I've had better success using the Payment module and ...
user avatar
1 vote
Accepted

Commerce Paypal WPP Sandbox: cURL error: SSL connect error

Ran this past some Paypal support personnel. They echoed both the author of the question and Nick in the comments. Paypal reviewed the error and offered a link to this resource, which I will quote in ...
user avatar
  • 1,547
1 vote
Accepted

Disable payment via custom module

Option 1: Hook Form Alter Rules are event-based conditional actions. For "showing" or "hiding" payments, that event it almost always going to be simply showing the form on checkout. So, technically, ...
user avatar
  • 1,547
1 vote
Accepted

How to add a checkbox in checkout form to optionally add 5$ to the product price as a donation?

Have a look at the Commerce Donate module. From its project page: This module provides a donation line item type along with a donation product and product display. This is partially based on Randy ...
user avatar
1 vote

How to set programmatically Line Item Price?

I have struggled a bit with this, as have others apparently, but i found the solution in another thread. Every time an order object is loaded the following function is fired: ...
user avatar
1 vote
Accepted

How to edit order summary field labels on paypal page

The Paypal WPS API can be used to hold multiple individual items, but it can also just be used to handle a single order. It effectively does this by making the Drupal order the only product on the ...
user avatar
  • 3,624
1 vote
Accepted

Is it possible to force redirection from PayPal to the website after successful payment?

The answer is unfortunately no. PayPal will always display this as an option to the client, so you can't force the redirection back after the payment has been completed.
user avatar
1 vote

Is there a way to turn off the paypal checkout button in /cart view in drupal 7 commerce?

Although it's not recommended, you can comment these lines: $form['paypal_ec'] = array( '#type' => 'image_button', '#value' => t('Check out with PayPal'), '#src' => ...
user avatar
  • 121

Only top scored, non community-wiki answers of a minimum length are eligible