Plugin Directory

Changeset 3765248


Ignore:
Timestamp:
10/25/2026 09:26:38 PM (69 minutes ago)
Author:
hippoplugins
Message:

Prefill Creem checkout billing name

Location:
hippopay-payments-with-creem-for-woocommerce/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • hippopay-payments-with-creem-for-woocommerce/trunk/includes/class-wc-creem-gateway.php

    r3566609 r3765248  
    162162                }
    163163
    164                 // Create checkout session
     164                // Prefill the Creem checkout with billing details already collected on the order.
     165                $customer = array(
     166                        'email' => sanitize_email( $order->get_billing_email() ),
     167                );
     168
     169                $billing_full_name = sanitize_text_field( $order->get_formatted_billing_full_name() );
     170
     171                if ( '' !== $billing_full_name ) {
     172                        $customer['name'] = $billing_full_name;
     173                }
     174
     175                // Create checkout session.
    165176                $checkout_payload = array(
    166177                        'product_id'  => $product_id,
    167178                        'success_url' => $this->get_return_url( $order ),
    168                         'customer'    => array(
    169                                 'email' => $order->get_billing_email(),
    170                         ),
     179                        'customer'    => $customer,
    171180                        'metadata'    => array(
    172181                                'order_id' => $order_id,
  • hippopay-payments-with-creem-for-woocommerce/trunk/package.json

    r3537875 r3765248  
    11{
    22  "name": "hippopay-payments-with-creem-for-woocommerce",
    3   "version": "1.0.0",
     3  "version": "1.0.2",
    44  "description": "Creem Gateway for WooCommerce Blocks",
    55  "main": "build/index.js",
  • hippopay-payments-with-creem-for-woocommerce/trunk/payment-gateway-creem-for-woocommerce.php

    r3566609 r3765248  
    33 * Plugin Name: HippoPay Payments with Creem for WooCommerce
    44 * Description: Accept payments on your WooCommerce store using Creem.io. Supports off-site checkout securely and easily.
    5  * Version: 1.0.1
     5 * Version: 1.0.2
    66 * Author: hippoplugins
    77 * Author URI: https://hippoplugins.com/
    … …  
    99 * Text Domain: hippopay-payments-with-creem-for-woocommerce
    1010 * Domain Path: /languages
     11 * Requires at least: 6.0
     12 * Tested up to: 7.1
     13 * Requires PHP: 8.0
    1114 * Requires Plugins: woocommerce
    1215 * WC requires at least: 8.0
    13  * WC tested up to: 9.3
     16 * WC tested up to: 11.2
    1417 */
    1518
    … …  
    2023define( 'HP_CREEM_PLUGIN_URL', untrailingslashit( plugins_url( basename( plugin_dir_path( __FILE__ ) ), basename( __FILE__ ) ) ) );
    2124define( 'HP_CREEM_PLUGIN_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
    22 define( 'HP_CREEM_VERSION', '1.0.0' );
     25define( 'HP_CREEM_VERSION', '1.0.2' );
    2326
    2427/**
  • hippopay-payments-with-creem-for-woocommerce/trunk/readme.txt

    r3566609 r3765248  
    33Tags: woocommerce, payment gateway, creem, checkout, payments
    44Requires at least: 6.0
    5 Tested up to: 7.0
     5Tested up to: 7.1
    66Requires PHP: 8.0
    77Requires Plugins: woocommerce
    8 Stable tag: 1.0.1
     8Stable tag: 1.0.2
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    8787== Changelog ==
    8888
     89= 1.0.2 =
     90* Prefill the customer billing full name on the Creem checkout page.
     91
    8992= 1.0.1 =
    9093* Added copyable webhook url in the payment gateway's setting.
    … …  
    9295= 1.0.0 =
    9396* Initial release.
     97
     98== Upgrade Notice ==
     99
     100= 1.0.2 =
     101The Creem checkout page now prefills the billing full name from the WooCommerce order, so customers do not have to enter it again.
Note: See TracChangeset for help on using the changeset viewer.