This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

handling Post parameters for offsite gateway custom module?

I made offsite custom module in Drupal9. After clicking on 'Pay and Complete Purchase' the redirect url is Just taking to gateway url access denied page. It isn't taking the parameters and not working. I'll share my PluginForm file below.  Can somebody please shed some light If I missed something? 

<?php

namespace Drupal\commerce_payu\PluginForm\PayURedirect;

use Drupal\commerce_payment\PluginForm\PaymentOffsiteForm as BasePaymentOffsiteForm;

What will be the correct name of the PluginForm/file.php in Drupal9?

I have faced same problem. Can somebody please clarify my doubt whether the "PluginForm/Example"    inside folder name should be same as file name or form class? What's the correct structure of directory?

Retrieve data via an external API on Drupal 9

Hello everyone,
I'm relatively new to Drupal.
Before asking this question, I looked for my answers on forums and tutorials, without success because I still can't solve my problem.

I have a site developed under drupal 9. On this site, I need to retrieve information (among others: a list of events, users, etc..) from an external API (which is managed with swaggerui )

The API is a Rest API, with an endpoint.
To connect to it, I must already generate a token, and once the token is generated I can retrieve the information.

Example :

Working with custom entities in secondary database

So I came across this article, which outlines how to create custom entities, and custom storage handlers for those entities. What isn't clear, is how to get Drupal to do this for external databases. Here's the scenario. 

I have a Drupal installation that I am building a custom integration for. There is a secondary database setup with it's own relationships and schema. (Not Drupal related). 

Preserving PHP code

Drupal 8 and up don't like users to "do" PHP. That's somewhat understandable, although I feel the dreaded security risk is a tad exaggerated: a bit of basic user management can prevent a lot of harm. So, I for one Do like to have PHP available within Drupal, as it was in olden days - especially in a localhost development environment. Understandably, it was a very sad day when I found out that Twig templates don't accept PHP any more, like the PHP Template system used to do. I badly miss that! 

Superfish automatically expand and stay fixed.

Hello

When I add links to menu items the superfish menu shows expanded on all pages and stays fixed but not on the front page. If I remove the link then it will not expand.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions