django-payments icon indicating copy to clipboard operation
django-payments copied to clipboard

Stripe : move customer_data field to metadata

Open fabienheureux opened this issue 1 year ago • 1 comments

Ref https://github.com/jazzband/django-payments/issues/378


In stripe/providers.py the field customer_data does not seem to be defined in Stripe API's Session object

It could be moved to the metadata field (from Stripe's documentation) :

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

fabienheureux avatar Apr 10 '24 20:04 fabienheureux

LGTM.

Needs rebase (has conflicts).

WhyNotHugo avatar May 08 '24 10:05 WhyNotHugo

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.42%. Comparing base (8303e09) to head (3c6177c). Report is 15 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #407   +/-   ##
=======================================
  Coverage   78.42%   78.42%           
=======================================
  Files          29       29           
  Lines        1979     1979           
  Branches      244      234   -10     
=======================================
  Hits         1552     1552           
  Misses        310      310           
  Partials      117      117           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Jun 12 '24 13:06 codecov[bot]