How to enable Gift card payment at payment url

I want to allow gift card payment at my application. I have currently applied payment url API. which allows debit/credit cards for payment. Is it any option that same url can allow payment using gift card?

At this time with Payment Links generated by the API the ability to pay using a gift card isn’t currently available. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team. :slightly_smiling_face:

1 Like

Thanks @Bryan-Square ,
So which way you suggest to use gift card payment at my WPF application?

Unfortunately, till its supported the ability to use gift cards isn’t available. :slightly_smiling_face:

Hi @Bryan-Square, I’m the client that @jaiminCygnet is working with regarding Gift Card payments on the APP he has developed. I appreciate your feedback and understand this functionality is not yet available. Therefore, can I add a question regarding Coupons that could be used in place of the Gift Cards.

Square appears to offer two distinct Coupon types - Coupons from Square Online and Coupons with Square Marketing. Coupons Online offers customisable rules and restrictions which allow for single use activation. This would be a suitable replacement for the Gift Card for now. However, I’ve tested this Coupon type with the API checkout and it is NOT recognised.

Coupons generated under Marketing ARE recognised and processed via the API checkout in the APP. But these coupons have few limits and can be re-used until the end date or they are manually cancelled by the operator. So, this is not a suitable alternative for the single use Gift Card. Am I correct that the Coupons Online (like the Gift Cards) cannot be used in conjunction with the API generated checkout or is there a way to activate this option? Thanks.

This is correct. The online coupons at this time aren’t available for use with payment links created with the API. I’ve shared your feedback with the team and we hope to have more for you in the future. :slightly_smiling_face:

{
  "order": {
    "id": "Eagh00uqOYJpQlhL7qRN7Wd1ZiTZY",
    "location_id": "LG1W290W8KQ9Q",
    "line_items": [
      {
        "uid": "jJVKFmIMeqmwrlR0i0eqO",
        "quantity": "1",
        "name": "15 min Podcast",
        "base_price_money": {
          "amount": 2500,
          "currency": "AUD"
        },
        "gross_sales_money": {
          "amount": 2500,
          "currency": "AUD"
        },
        "total_tax_money": {
          "amount": 0,
          "currency": "AUD"
        },
        "total_discount_money": {
          "amount": 2500,
          "currency": "AUD"
        },
        "total_money": {
          "amount": 0,
          "currency": "AUD"
        },
        "variation_total_price_money": {
          "amount": 2500,
          "currency": "AUD"
        },
        "applied_discounts": [
          {
            "uid": "f937431f-36b0-49ba-8c66-13360bbb4368",
            "discount_uid": "4749a6d1-f135-4a3f-a2b9-a328515dd35f",
            "applied_money": {
              "amount": 2500,
              "currency": "AUD"
            }
          }
        ],
        "item_type": "ITEM",
        "total_service_charge_money": {
          "amount": 0,
          "currency": "AUD"
        }
      }
    ],
    "discounts": [
      {
        "uid": "4749a6d1-f135-4a3f-a2b9-a328515dd35f",
        "catalog_object_id": "A4JAUN3QF7CRUETZEHUWYPIK",
        "catalog_version": 1685488880954,
        "name": "Get $25 off the next time you visit! — DAVIDFLOYD25",
        "amount_money": {
          "amount": 2500,
          "currency": "AUD"
        },
        "applied_money": {
          "amount": 2500,
          "currency": "AUD"
        },
        "type": "FIXED_AMOUNT",
        "scope": "LINE_ITEM",
        "pricing_rule_id": "EX7TTGNKTPYDO35ZFLHQPSSR"
      }
    ],
    "fulfillments": [
      {
        "uid": "rN6BYCTymMHYnKsYlEmVbC",
        "type": "DIGITAL",
        "state": "PROPOSED"
      }
    ],
    "created_at": "2023-05-31T02:30:02.677Z",
    "updated_at": "2023-05-31T02:30:42.000Z",
    "state": "OPEN",
    "version": 7,
    "total_tax_money": {
      "amount": 0,
      "currency": "AUD"
    },
    "total_discount_money": {
      "amount": 2500,
      "currency": "AUD"
    },
    "total_tip_money": {
      "amount": 0,
      "currency": "AUD"
    },
    "total_money": {
      "amount": 0,
      "currency": "AUD"
    },
    "tenders": [
      {
        "id": "XHMvWJn3qNjhfAlMl189gWU5OJ7YY",
        "location_id": "LG1W290W8KQ9Q",
        "transaction_id": "Eagh00uqOYJpQlhL7qRN7Wd1ZiTZY",
        "created_at": "2023-05-31T02:30:40Z",
        "note": "Test Notes",
        "amount_money": {
          "amount": 0,
          "currency": "AUD"
        },
        "type": "CASH",
        "cash_details": {
          "buyer_tendered_money": {
            "amount": 0,
            "currency": "AUD"
          },
          "change_back_money": {
            "amount": 0,
            "currency": "AUD"
          }
        },
        "tip_money": {
          "amount": 0,
          "currency": "AUD"
        },
        "payment_id": "XHMvWJn3qNjhfAlMl189gWU5OJ7YY"
      }
    ],
    "total_service_charge_money": {
      "amount": 0,
      "currency": "AUD"
    },
    "net_amounts": {
      "total_money": {
        "amount": 0,
        "currency": "AUD"
      },
      "tax_money": {
        "amount": 0,
        "currency": "AUD"
      },
      "discount_money": {
        "amount": 2500,
        "currency": "AUD"
      },
      "tip_money": {
        "amount": 0,
        "currency": "AUD"
      },
      "service_charge_money": {
        "amount": 0,
        "currency": "AUD"
      }
    },
    "source": {
      "name": "Poddy-Payment"
    },
    "customer_id": "2NPCAEPY6ZJQ6BDG1SDHTSNJA8",
    "net_amount_due_money": {
      "amount": 0,
      "currency": "AUD"
    }
  }
}

From above response which object is confirming the discount is applied successful?

As we found that coupons can be re-used. Any option available at checkout create payment link api , which can disable or hide coupon entry option?

At this time the ability to disable the coupon field for checkouts isn’t currently available. :slightly_smiling_face: