api

An introduction to Drupal apis (creative blog)

Submitted by Nicholas on Fri, 07/01/2022 - 08:00
The problem to solve: Imagine you run a community/social website, where users can comment on posts/comments' threads, but wanted to unpublish some comments based on some rules or company TCs. Maybe some slurs or anything around that. Now you could achieve this without code by configuring modules like rules and views, but our blog title has the word creative and Drupal apis in it: they also say Drupal is a framework and our title is not a clickbait; if you can count beyond ten, those are four reasons why we should solve this problem via custom code.

Paypal express checkout and drupal (updated + smart buttons)

Submitted by Nicholas on Sun, 04/25/2021 - 10:38

Two years ago, I wrote a blog demonstrating how one could integrate Paypal express checkout in Drupal, but...; in tech, things move(change) fast, mostly for better:
that blog was about PayPal api v1 - one reason being; the Paypal SDK library we were extending has been abandoned (deprecated) for a better one.

In this blog we will attempt to achieve the same and make things better. We will use smart payment buttons to initiate and authorize an order, and add the necessary logic in Drupal to process the authorized order (payment) details in the request object.